From cc76ce042c6a45931495f6159d231091152aeabe Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 22 Nov 2001 08:50:58 +0000 Subject: *** empty log message *** --- tests/misc/csplit | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/misc/csplit b/tests/misc/csplit index 536ffd513..19c817a2a 100755 --- a/tests/misc/csplit +++ b/tests/misc/csplit @@ -1,5 +1,5 @@ #!/bin/sh -# csplit could get a failed assertion prior to 2.0.17 +# various csplit tests if test "$VERBOSE" = yes; then set -x @@ -24,16 +24,24 @@ fi fail=0 +# csplit could get a failed assertion to 2.0.17 (echo a; echo; echo) > in csplit in '/^$/' 2 > out || fail=1 - cat < exp 2 0 2 EOF - cmp out exp || fail=1 test $fail = 1 && diff out exp 2> /dev/null +rm -f in out exp + +# csplit would infloop +(echo; echo a) > in +csplit in '/a/-1' '{*}' > out || fail=1 +cat < exp +0 +3 +EOF (exit $fail); exit -- cgit v1.2.3-54-g00ecf