From 14942ad80d2cbd1c6e5e7dea23c60a009d2be704 Mon Sep 17 00:00:00 2001 From: green Date: Thu, 27 Jun 2002 15:58:59 +0000 Subject: Correct the psl regression test for sed(1)'s now-fixed newline behavior. Add the bcb regression test which checks for failures due to a backslash ('\') coinciding with the very last character of the command buffer. The regression test is cf. this PR (which I did not know about) and has a different fix for the bug. PR: bin/22351 Submitted by: Stefan Duerholt --- tools/regression/usr.bin/sed/regress.bcb.out | 4 ++++ tools/regression/usr.bin/sed/regress.psl.out | 3 +++ tools/regression/usr.bin/sed/regress.sh | 1 + 3 files changed, 8 insertions(+) create mode 100644 tools/regression/usr.bin/sed/regress.bcb.out (limited to 'tools/regression/usr.bin/sed') diff --git a/tools/regression/usr.bin/sed/regress.bcb.out b/tools/regression/usr.bin/sed/regress.bcb.out new file mode 100644 index 0000000..2a26e6a --- /dev/null +++ b/tools/regression/usr.bin/sed/regress.bcb.out @@ -0,0 +1,4 @@ +input +data +for validation +of sed(1) diff --git a/tools/regression/usr.bin/sed/regress.psl.out b/tools/regression/usr.bin/sed/regress.psl.out index 965a13c..8b38f4d 100644 --- a/tools/regression/usr.bin/sed/regress.psl.out +++ b/tools/regression/usr.bin/sed/regress.psl.out @@ -1 +1,4 @@ + + + of sed(1) diff --git a/tools/regression/usr.bin/sed/regress.sh b/tools/regression/usr.bin/sed/regress.sh index 1176466..15ab0e6 100644 --- a/tools/regression/usr.bin/sed/regress.sh +++ b/tools/regression/usr.bin/sed/regress.sh @@ -5,6 +5,7 @@ REGRESSION_START($1) REGRESSION_TEST(`G', `sed G < regress.in') REGRESSION_TEST(`P', `sed P < regress.in') REGRESSION_TEST(`psl', `sed \$!g\;P\;D < regress.in') +REGRESSION_TEST(`bcb', `sed s/X/$(jot -n -bx -s "" 2043)\\\\zz/ < regress.in') REGRESSION_TEST(`y', `echo -n foo | sed y/o/O/') REGRESSION_END() -- cgit v1.1