From: Jim Meyering Date: Fri, 10 Oct 1997 21:20:45 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: TEXTUTILS-1_22c~284 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee9b6aa2e5d98c68a0cd5860c3076e986ff091af;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/tests/sort/sort-tests b/tests/sort/sort-tests index c45a4b8f8f..12881a5ccf 100755 --- a/tests/sort/sort-tests +++ b/tests/sort/sort-tests @@ -1361,8 +1361,25 @@ else esac fi test -s 19b.E || rm -f 19b.E +$xx $srcdir/20a.I > 20a.O 2> 20a.E +code=$? +if test $code != 0 ; then + $echo "Test 20a failed: ../../src/sort return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp 20a.O $srcdir/20a.X > /dev/null 2>&1 + case $? in + 0) if test "$VERBOSE" ; then $echo "passed 20a"; fi ;; + 1) $echo "Test 20a failed: files 20a.O and $srcdir/20a.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test 20a may have failed." 1>&2; + $echo The command "cmp 20a.O $srcdir/20a.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s 20a.E || rm -f 20a.E if test $errors = 0 ; then - $echo Passed all 79 tests. 1>&2 + $echo Passed all 80 tests. 1>&2 else $echo Failed $errors tests. 1>&2 fi