From 132c1f2bb19c92722274c69a190c2f71b801b602 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 22 Oct 2016 16:10:38 +0200 Subject: Add support for no-newline redirects in testscript The no-newline operators are '<:', '>:', '<<:', and '>>:'. --- unit-tests/test/script/parser/scope.test | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'unit-tests') 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. -# -#$* <>EOE != 0 # expected-newline-cmd -#cmd ;\ -#EOI -#testscript:2:1: error: expected newline instead of -#EOE +$* <<:EOI 2>>EOE != 0 # expected-newline-cmd +cmd; +EOI +testscript:1:5: error: expected newline instead of +EOE -#$* <>EOE != 0 # expected-newline-var -#x =abc;\ -#EOI -#testscript:2:1: error: expected newline instead of -#EOE +$* <:"x = abc;" 2>>EOE != 0 # expected-newline-var +testscript:1:9: error: expected newline instead of +EOE -- cgit v1.1