diff options
author | Jim Meyering <jim@meyering.net> | 1996-11-02 05:24:50 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-11-02 05:24:50 +0000 |
commit | da952f6227acadc05e6a263b9fe7653da1370da3 (patch) | |
tree | e17133fee17971aeecce746246e64d31439cb837 /tests | |
parent | 31926f3a3712ae0658e2537ee2e9bd846ee76a95 (diff) | |
download | coreutils-da952f6227acadc05e6a263b9fe7653da1370da3.tar.xz |
.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/sort/sort-tests | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/sort/sort-tests b/tests/sort/sort-tests index 396a254ba..0f3d255e9 100755 --- a/tests/sort/sort-tests +++ b/tests/sort/sort-tests @@ -1216,6 +1216,23 @@ else esac fi test -s t16a.err || rm -f t16a.err +$xx -c $srcdir/t17.in > t17.out 2> t17.err +code=$? +if test $code != 0 ; then + $echo Test 17 failed: ../../src/sort return code $code differs from expected value 0 1>&2 + errors=`expr $errors + 1` +else + cmp t17.out $srcdir/t17.exp + case $? in + 0) if test "$VERBOSE" ; then $echo passed 17; fi ;; # equal files + 1) $echo Test 17 failed: files t17.out and $srcdir/t17.exp differ 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo Test 17 may have failed. 1>&2; + $echo The command "cmp t17.out $srcdir/t17.exp" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s t17.err || rm -f t17.err if test $errors = 0 ; then $echo Passed all tests. 1>&2 else |