diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-09 17:03:04 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-09 21:44:23 +0300 |
commit | ca97c1e1527e721cae3a1114864da2110b15406a (patch) | |
tree | 4db188edbc01e3ebcb74920e52cc6bf8b6846af8 /unit-tests/test/script/parser/regex.test | |
parent | 13fd92f4c8e4f68bf4f9cc0b7de95e7ee7fe9d82 (diff) |
Workaround libc++'s basic_string<line_char> crash
Diffstat (limited to 'unit-tests/test/script/parser/regex.test')
-rw-r--r-- | unit-tests/test/script/parser/regex.test | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/unit-tests/test/script/parser/regex.test b/unit-tests/test/script/parser/regex.test index f3fda75..f9101c9 100644 --- a/unit-tests/test/script/parser/regex.test +++ b/unit-tests/test/script/parser/regex.test @@ -46,9 +46,12 @@ : malformed : - $* <'cmd >~/*foo/' 2>>~/EOE/ != 0 + : Note that old versions of libc++ (for example 1.1) do not detect some + : regex errors. For example '*' is parsed successfully. + : + $* <'cmd >~/foo[/' 2>>~/EOE/ != 0 /testscript:1:7: error: invalid stdout regex redirect.*/ - info: regex: /*foo/ + info: regex: /foo[/ EOE : without-flags @@ -128,7 +131,7 @@ : $* <<EOI 2>>~/EOE/ != 0 cmd >>~/EOO/ - /?foo/ + /foo[/ EOO EOI /testscript:2:1: error: invalid regex.*/ @@ -138,10 +141,11 @@ : $* <<EOI 2>>~/EOE/ != 0 cmd >>~/EOO/ - /* + a + /{ EOO EOI - /testscript:3:1: error: invalid here-document regex.*/ + /testscript:4:1: error: invalid here-document regex.*/ EOE : empty |