aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-08-28 13:00:29 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-08-28 13:00:29 +0200
commitcc272b06eefb87030bb85b686abdbc22b5ed1c34 (patch)
tree06024199184cfab43807a1fdcc2a240b9cf5ac99 /testsuite
parentd84b175cb6948eb17f847313bf912174e2f934e1 (diff)
downloadbusybox-w32-1_19_1.tar.gz
busybox-w32-1_19_1.tar.bz2
busybox-w32-1_19_1.zip
Apply post-1.19.0 patches, bump version to 1.19.11_19_1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sed.tests10
1 files changed, 7 insertions, 3 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index e9d0ed601..ba163e9e9 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -6,7 +6,7 @@
6 6
7. ./testing.sh 7. ./testing.sh
8 8
9# testing "description" "arguments" "result" "infile" "stdin" 9# testing "description" "commands" "result" "infile" "stdin"
10 10
11# Corner cases 11# Corner cases
12testing "sed no files (stdin)" 'sed ""' "hello\n" "" "hello\n" 12testing "sed no files (stdin)" 'sed ""' "hello\n" "" "hello\n"
@@ -225,7 +225,7 @@ testing "sed s/xxx/[/" "sed -e 's/xxx/[/'" "[\n" "" "xxx\n"
225#testing "sed -g (exhaustive)" "sed -e 's/[[:space:]]*/,/g'" ",1,2,3,4,5," \ 225#testing "sed -g (exhaustive)" "sed -e 's/[[:space:]]*/,/g'" ",1,2,3,4,5," \
226# "" "12345" 226# "" "12345"
227 227
228# testing "description" "arguments" "result" "infile" "stdin" 228# testing "description" "commands" "result" "infile" "stdin"
229 229
230testing "sed n command must reset 'substituted' bit" \ 230testing "sed n command must reset 'substituted' bit" \
231 "sed 's/1/x/;T;n;: next;s/3/y/;t quit;n;b next;: quit;q'" \ 231 "sed 's/1/x/;T;n;: next;s/3/y/;t quit;n;b next;: quit;q'" \
@@ -291,6 +291,10 @@ testing "sed understands \r" \
291 "sed 's/r/\r/'" \ 291 "sed 's/r/\r/'" \
292 "\rrr\n" "" "rrr\n" 292 "\rrr\n" "" "rrr\n"
293 293
294# testing "description" "arguments" "result" "infile" "stdin" 294testing "sed -i finishes ranges correctly" \
295 "sed '1,2d' -i input; echo \$?; cat input" \
296 "0\n3\n4\n" "1\n2\n3\n4\n" ""
297
298# testing "description" "commands" "result" "infile" "stdin"
295 299
296exit $FAILCOUNT 300exit $FAILCOUNT