]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Sat, 2 Nov 1996 05:24:50 +0000 (05:24 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Nov 1996 05:24:50 +0000 (05:24 +0000)
old/textutils/ChangeLog
tests/sort/sort-tests

index d0b2a1f83e2ea42214fc22218f6405d44ac8a28a..14e57a0ac2ced96482ed78c22d3a09d5eed87bf4 100644 (file)
@@ -1,5 +1,7 @@
 Fri Nov  1 21:33:16 1996  Jim Meyering  <meyering@na-net.ornl.gov>
 
+       * tests/sort-test/Test.pm: Add a test to exercize this fix.
+
        * src/sort.c [!ENABLE_ASSERTIONS]: Guard NDEBUG definition.
        (checkfp): Fix off-by-one error that resulted in writing one byte
        beyond the end of a malloc'd buffer.  It caused `sort -c' to segfault
index 396a254ba021e9211cffe2cb219a47ffb925ef98..0f3d255e9199c79a5e66a539f3039fe643f30835 100755 (executable)
@@ -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