From 3661c96081944ff8b17611ba915be68c824e4869 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 23 Sep 1996 02:49:03 +0000 Subject: . --- tests/sort/sort-tests | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests') diff --git a/tests/sort/sort-tests b/tests/sort/sort-tests index e830fe15c..396a254ba 100755 --- a/tests/sort/sort-tests +++ b/tests/sort/sort-tests @@ -1199,6 +1199,23 @@ else esac fi test -s t15e.err || rm -f t15e.err +$xx -f $srcdir/t16a.in > t16a.out 2> t16a.err +code=$? +if test $code != 0 ; then + $echo Test 16a failed: ../../src/sort return code $code differs from expected value 0 1>&2 + errors=`expr $errors + 1` +else + cmp t16a.out $srcdir/t16a.exp + case $? in + 0) if test "$VERBOSE" ; then $echo passed 16a; fi ;; # equal files + 1) $echo Test 16a failed: files t16a.out and $srcdir/t16a.exp differ 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo Test 16a may have failed. 1>&2; + $echo The command "cmp t16a.out $srcdir/t16a.exp" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s t16a.err || rm -f t16a.err if test $errors = 0 ; then $echo Passed all tests. 1>&2 else -- cgit v1.2.3-70-g09d2