aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-05-27 11:56:52 +0100
committerRon Yorston <rmy@pobox.com>2019-05-27 11:56:52 +0100
commita61949401890cbb33a9d6c4571b51c53460ad438 (patch)
tree64dedaddb89896d5b1670a421af123670ca2120b /testsuite
parent03a7b173605a890e1db5177ecd5b8dd591081c41 (diff)
parentbcb1fc3e6ca6fe902610f507eaf9b0b58a5c583a (diff)
downloadbusybox-w32-a61949401890cbb33a9d6c4571b51c53460ad438.tar.gz
busybox-w32-a61949401890cbb33a9d6c4571b51c53460ad438.tar.bz2
busybox-w32-a61949401890cbb33a9d6c4571b51c53460ad438.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/bunzip2.tests2
-rwxr-xr-xtestsuite/sed.tests6
2 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/bunzip2.tests b/testsuite/bunzip2.tests
index edb332748..69e34dfd0 100755
--- a/testsuite/bunzip2.tests
+++ b/testsuite/bunzip2.tests
@@ -562,7 +562,7 @@ if test "${0##*/}" = "bunzip2.tests"; then
562 fi 562 fi
563 563
564 errout="`${bb}bunzip2 <bz2_issue_12.bz2 2>&1 >/dev/null`" 564 errout="`${bb}bunzip2 <bz2_issue_12.bz2 2>&1 >/dev/null`"
565 if test x"$errout:$?" = x"bunzip2: bunzip error -3:1"; then 565 if test x"$errout:$?" = x"bunzip2: bunzip error -5:1"; then
566 echo "PASS: $unpack: bz2_issue_12.bz2 corrupted example" 566 echo "PASS: $unpack: bz2_issue_12.bz2 corrupted example"
567 else 567 else
568 echo "FAIL: $unpack: bz2_issue_12.bz2 corrupted example" 568 echo "FAIL: $unpack: bz2_issue_12.bz2 corrupted example"
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index 675cb4f10..67ff87e93 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -361,6 +361,12 @@ testing "sed /regex/,+N{...} addresses work" \
361 "" \ 361 "" \
362 "1\n2\n3\n4\n5\n" 362 "1\n2\n3\n4\n5\n"
363 363
364testing "sed /regex/,+N{...} addresses work 2" \
365 "sed -n '/a/,+1 p'" \
366 "a\n1\na\n2\na\n3\n" \
367 "" \
368 "a\n1\nc\nc\na\n2\na\n3\n"
369
364testing "sed /regex/,+N{...} -i works" \ 370testing "sed /regex/,+N{...} -i works" \
365 "cat - >input2; sed /^4/,+2{d} -i input input2; echo \$?; cat input input2; rm input2" \ 371 "cat - >input2; sed /^4/,+2{d} -i input input2; echo \$?; cat input input2; rm input2" \
366 "0\n""1\n2\n3\n7\n8\n""1\n2\n7\n8\n" \ 372 "0\n""1\n2\n3\n7\n8\n""1\n2\n7\n8\n" \