From 808a6a2308a10dfcfec080f9b66ff2663cc8894b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 14 Mar 1997 04:14:37 +0000 Subject: . --- tests/pr/pr-tests | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tests/pr') diff --git a/tests/pr/pr-tests b/tests/pr/pr-tests index c71dbf8bf..fb1fce63e 100755 --- a/tests/pr/pr-tests +++ b/tests/pr/pr-tests @@ -3681,8 +3681,25 @@ else esac fi test -s 12md.E || rm -f 12md.E +$xx --test -h x -o 0 $srcdir/margin-0.I > margin-0.O 2> margin-0.E +code=$? +if test $code != 0 ; then + $echo "Test margin-0 failed: ../../src/pr return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp margin-0.O $srcdir/margin-0.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed margin-0"; fi ;; + 1) $echo "Test margin-0 failed: files margin-0.O and $srcdir/margin-0.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test margin-0 may have failed." 1>&2; + $echo The command "cmp margin-0.O $srcdir/margin-0.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s margin-0.E || rm -f margin-0.E if test $errors = 0 ; then - $echo Passed all 216 tests. 1>&2 + $echo Passed all 217 tests. 1>&2 else $echo Failed $errors tests. 1>&2 fi -- cgit v1.2.3-70-g09d2