aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-06 14:39:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-01-06 14:39:18 +0200
commite66597b5a811e3f3313566cfff955c10ff5b1ccd (patch)
tree9a6d3e1b5be85fdbbc60ac5f8bac5da1595b04b0 /unit-tests/test/script/parser
parent5545b9e9627029e1e16c945f19c6d90a1dd51831 (diff)
Add testscript lexer support for portable path modifier (/)
Diffstat (limited to 'unit-tests/test/script/parser')
-rw-r--r--unit-tests/test/script/parser/regex.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/unit-tests/test/script/parser/regex.test b/unit-tests/test/script/parser/regex.test
index 58b1606..9f2e737 100644
--- a/unit-tests/test/script/parser/regex.test
+++ b/unit-tests/test/script/parser/regex.test
@@ -83,6 +83,12 @@
testscript:1:8: error: no introducer character in stderr regex redirect
EOE
}
+
+ : modifier-last
+ :
+ $* <'cmd >~/x' 2>>EOE != 0
+ testscript:1:7: error: no closing introducer character in stdout regex redirect
+ EOE
}
: here-doc
@@ -185,4 +191,10 @@
testscript:1:9: error: expected here-document regex end marker
EOE
}
+
+ : modifier-last
+ :
+ $* <'cmd >>~:/FOO/' 2>>EOE != 0
+ testscript:1:8: error: expected here-document regex end marker
+ EOE
}