[Toybox] [PATCH] sed.test: remove accidental newlines.

enh enh at google.com
Mon May 6 08:40:20 PDT 2019


---
 tests/sed.test | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/sed.test b/tests/sed.test
index 6b27fff8..04603a21 100755
--- a/tests/sed.test
+++ b/tests/sed.test
@@ -169,11 +169,11 @@ testing '-z' 'sed -z "s/\n/-/g"' "a-b-c" "" "a\nb\nc"

 # toybox handling of empty capturing groups broke minjail. Check that we
 # correctly replace an empty capturing group with the empty string:
-testing '\n with empty capture' \
+testing '\N with empty capture' \
     'sed -E "s/(ARM_)?(NR_)([a-z]*) (.*)/\1\2\3/"' "NR_read" "" "NR_read foo"
 # ...but also that we report an error for a backreference to a group that
 # isn't in the pattern:
-testing '\n too high' \
+testing '\N too high' \
     'sed -E "s/(.*)/\2/p" 2>/dev/null || echo OK' "OK\n" "" "foo"

 # -i with $ last line test
-- 
2.21.0.1020.gf2820cf01a-goog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sed.test-remove-accidental-newlines.patch
Type: text/x-patch
Size: 1051 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190506/4bf30d51/attachment-0002.bin>


More information about the Toybox mailing list