summaryrefslogtreecommitdiff
path: root/testsuite/sed.tests
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-29 17:10:19 +0000
committerDenis Vlasenko2007-01-29 17:10:19 +0000
commit86811803e304b63b71d3ddac91ad4e1cd741344f (patch)
tree3ecbd8b554f6a4c82f9b03d29087914f3d8a9623 /testsuite/sed.tests
parentc562bb74877f68edebfa31515c17d63fc4769a60 (diff)
downloadbusybox-86811803e304b63b71d3ddac91ad4e1cd741344f.zip
busybox-86811803e304b63b71d3ddac91ad4e1cd741344f.tar.gz
add to testsuite and fix yet another sed corner case
Diffstat (limited to 'testsuite/sed.tests')
-rwxr-xr-xtestsuite/sed.tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index cc20070..9576b6c 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -143,6 +143,9 @@ testing "sed subst+write" \
"sed -e 's/i/z/' -e 'woutputw' input -; echo -n X; cat outputw" \
"thzngy\nagaznXthzngy\nagazn" "thingy" "again"
rm outputw
+testing "sed trailing NUL" \
+ "sed 's/i/z/' input -" \
+ "a\0b\0\nc" "a\0b\0" "c"
# Test end-of-file matching behavior