[Toybox] [PATCH] sed: add test for AOSP build breakage.

enh enh at google.com
Fri Jan 11 16:22:57 PST 2019


Bug: http://b/122744241
---
 tests/sed.test | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/sed.test b/tests/sed.test
index 75d6ec5d..154b36a0 100755
--- a/tests/sed.test
+++ b/tests/sed.test
@@ -2,6 +2,9 @@

 #testing "name" "command" "result" "infile" "stdin"

+# toybox saying "no }" here broke the AOSP build.
+testing "Braces" "sed -n '/START/{:a;n;/END/q;p;ba}'" "b\nc\n" ""
"a\nSTART\nb\nc\nEND\nd"
+
 testing 'as cat' 'sed ""' "one\ntwo\nthree" "" "one\ntwo\nthree"
 # This segfaults ubuntu 12.04's sed. No really.
 SKIP_HOST=1 testing 'sed - - twice' 'sed "" - -' "hello\n" "" "hello\n"
-- 
2.20.1.97.g81188d93c3-goog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sed-add-test-for-AOSP-build-breakage.patch
Type: text/x-patch
Size: 847 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190111/d609fe46/attachment-0002.bin>


More information about the Toybox mailing list