diff options
Diffstat (limited to 'testsuite/sed.tests')
-rwxr-xr-x | testsuite/sed.tests | 6 |
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" |
136 | testing "sed cat plus empty file" "sed -e 's/nohit//' input -" "one\ntwo" \ | 136 | testing "sed cat plus empty file" "sed -e 's/nohit//' input -" "one\ntwo" \ |
137 | "one\ntwo" "" | 137 | "one\ntwo" "" |
138 | test x"$SKIP_KNOWN_BUGS" = x"" && { | ||
139 | testing "sed append autoinserts newline" "sed -e '/woot/a woo' -" \ | 138 | testing "sed append autoinserts newline" "sed -e '/woot/a woo' -" \ |
140 | "woot\nwoo\n" "" "woot" | 139 | "woot\nwoo\n" "" "woot" |
141 | } | 140 | testing "sed append autoinserts newline 2" "sed -e '/oot/a woo' - input" \ |
141 | "woot\nwoo\nboot\nwoo\n" "boot" "woot" | ||
142 | testing "sed append autoinserts newline 3" "sed -e '/oot/a woo' -i input && cat input" \ | ||
143 | "boot\nwoo\n" "boot" "" | ||
142 | testing "sed insert doesn't autoinsert newline" "sed -e '/woot/i woo' -" \ | 144 | testing "sed insert doesn't autoinsert newline" "sed -e '/woot/i woo' -" \ |
143 | "woo\nwoot" "" "woot" | 145 | "woo\nwoot" "" "woot" |
144 | testing "sed print autoinsert newlines" "sed -e 'p' -" "one\none" "" "one" | 146 | testing "sed print autoinsert newlines" "sed -e 'p' -" "one\none" "" "one" |