Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/regress/usr.bin/sort add test 41: sort -f < emptyfile bombs.



details:   https://anonhg.NetBSD.org/src/rev/611cb9fdf903
branches:  trunk
changeset: 503839:611cb9fdf903
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Feb 15 17:23:20 2001 +0000

description:
add test 41: sort -f < emptyfile bombs.

diffstat:

 regress/usr.bin/sort/stests |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 5e1be877cb13 -r 611cb9fdf903 regress/usr.bin/sort/stests
--- a/regress/usr.bin/sort/stests       Thu Feb 15 15:00:51 2001 +0000
+++ b/regress/usr.bin/sort/stests       Thu Feb 15 17:23:20 2001 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 #      @(#)stests      8.1 (Berkeley) 6/6/93
-#      $NetBSD: stests,v 1.10 2001/01/19 12:34:45 jdolecek Exp $
+#      $NetBSD: stests,v 1.11 2001/02/15 17:23:20 itojun Exp $
 
 # This code is derived from software contributed to Berkeley by
 # Peter McIlroy.
@@ -980,3 +980,7 @@
 // { print $1 " " line; if (idx++ > 200) exit 0 }' > in
 ln -sf in out
 xsort "B" -f
+
+#---------------------------------------------------------------
+TEST=41; echo $TEST    # sort -f empty item; previously bombed
+cat /dev/null | sort -f



Home | Main Index | Thread Index | Old Index