diff options
author | Elliott Hughes <enh@google.com> | 2019-01-11 16:22:11 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-01-11 21:11:59 -0600 |
commit | 323779dde2a48b99f90f66670dec72f0bd31213a (patch) | |
tree | 38261f49ccd4dd599311bf4676c743c432bd8adf /tests | |
parent | 6f6b7614e46333462c2c77ed60a500300ed37c36 (diff) | |
download | toybox-323779dde2a48b99f90f66670dec72f0bd31213a.tar.gz |
sed: add test for AOSP build breakage.
Bug: http://b/122744241
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/sed.test | 3 |
1 files changed, 3 insertions, 0 deletions
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" |