diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-22 16:10:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:34 +0200 |
commit | 132c1f2bb19c92722274c69a190c2f71b801b602 (patch) | |
tree | ce141b9b866582966262d01777dbf7e9e01e324e /unit-tests/test/script | |
parent | 31e16a7413813293e3cccb6799eaa08b7af5af4e (diff) |
Add support for no-newline redirects in testscript
The no-newline operators are '<:', '>:', '<<:', and '>>:'.
Diffstat (limited to 'unit-tests/test/script')
-rw-r--r-- | unit-tests/test/script/parser/scope.test | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/unit-tests/test/script/parser/scope.test b/unit-tests/test/script/parser/scope.test index 7517022..7749b3d 100644 --- a/unit-tests/test/script/parser/scope.test +++ b/unit-tests/test/script/parser/scope.test @@ -89,16 +89,12 @@ EOI testscript:2:1: error: expected another line after semicolon EOE -# @@ Need newline-less support. -# -#$* <<EOI 2>>EOE != 0 # expected-newline-cmd -#cmd ;\ -#EOI -#testscript:2:1: error: expected newline instead of <end of file> -#EOE +$* <<:EOI 2>>EOE != 0 # expected-newline-cmd +cmd; +EOI +testscript:1:5: error: expected newline instead of <end of file> +EOE -#$* <<EOI 2>>EOE != 0 # expected-newline-var -#x =abc;\ -#EOI -#testscript:2:1: error: expected newline instead of <end of file> -#EOE +$* <:"x = abc;" 2>>EOE != 0 # expected-newline-var +testscript:1:9: error: expected newline instead of <end of file> +EOE |