diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-25 07:22:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:35 +0200 |
commit | a6ae456de2d2bb88de07c80560424e8fb644dfce (patch) | |
tree | 6a51120901cde9cb427ec2be07be2fa069cdb3f5 /unit-tests/test | |
parent | f2522265c0e778f3c545d8f984b2621369b10c17 (diff) |
Diagnose semicolon after testscript setup/teardown commands
Diffstat (limited to 'unit-tests/test')
-rw-r--r-- | unit-tests/test/script/parser/buildfile | 2 | ||||
-rw-r--r-- | unit-tests/test/script/parser/setup-teardown.test | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/unit-tests/test/script/parser/buildfile b/unit-tests/test/script/parser/buildfile index a6be1f6..18acd20 100644 --- a/unit-tests/test/script/parser/buildfile +++ b/unit-tests/test/script/parser/buildfile @@ -11,6 +11,6 @@ filesystem config/{utility init operation} dump types-parsers \ test/{target script/{token lexer parser script}} exe{driver}: cxx{driver} ../../../../build2/cxx{$src} $libs \ -test{pre-parse expansion here-document command-re-parse scope} +test{pre-parse expansion here-document command-re-parse scope setup-teardown} include ../../../../build2/ diff --git a/unit-tests/test/script/parser/setup-teardown.test b/unit-tests/test/script/parser/setup-teardown.test new file mode 100644 index 0000000..fa940fd --- /dev/null +++ b/unit-tests/test/script/parser/setup-teardown.test @@ -0,0 +1,7 @@ +$* <"+cmd;" 2>>EOE != 0 # semi-after-setup +testscript:1:5: error: expected newline instead of ';' +EOE + +$* <"-cmd;" 2>>EOE != 0 # semi-after-tdown +testscript:1:5: error: expected newline instead of ';' +EOE |