aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-05-06 18:25:56 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-05-06 18:25:56 +0200
commitf2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af (patch)
treec5ca1cc1e5110cdb51822833da26cb8463bdd023 /testsuite
parent2fbc3123a2d94a85317b2269c724939db7e18fbf (diff)
downloadbusybox-w32-f2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af.tar.gz
busybox-w32-f2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af.tar.bz2
busybox-w32-f2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af.zip
sed: fix append command to match GNU sed 4.2.1
This closes one testcase failure Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sed.tests6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index c4b6fa278..a71f8b1f0 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -135,10 +135,12 @@ testing "sed empty file plus cat" "sed -e 's/nohit//' input -" "one\ntwo" \
135 "" "one\ntwo" 135 "" "one\ntwo"
136testing "sed cat plus empty file" "sed -e 's/nohit//' input -" "one\ntwo" \ 136testing "sed cat plus empty file" "sed -e 's/nohit//' input -" "one\ntwo" \
137 "one\ntwo" "" 137 "one\ntwo" ""
138test x"$SKIP_KNOWN_BUGS" = x"" && {
139testing "sed append autoinserts newline" "sed -e '/woot/a woo' -" \ 138testing "sed append autoinserts newline" "sed -e '/woot/a woo' -" \
140 "woot\nwoo\n" "" "woot" 139 "woot\nwoo\n" "" "woot"
141} 140testing "sed append autoinserts newline 2" "sed -e '/oot/a woo' - input" \
141 "woot\nwoo\nboot\nwoo\n" "boot" "woot"
142testing "sed append autoinserts newline 3" "sed -e '/oot/a woo' -i input && cat input" \
143 "boot\nwoo\n" "boot" ""
142testing "sed insert doesn't autoinsert newline" "sed -e '/woot/i woo' -" \ 144testing "sed insert doesn't autoinsert newline" "sed -e '/woot/i woo' -" \
143 "woo\nwoot" "" "woot" 145 "woo\nwoot" "" "woot"
144testing "sed print autoinsert newlines" "sed -e 'p' -" "one\none" "" "one" 146testing "sed print autoinsert newlines" "sed -e 'p' -" "one\none" "" "one"