aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/parser+exit.test.testscript
blob: 014afa40f658a0578638c9e29216ecdedbf616cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# file      : build2/test/script/parser+exit.test.testscript
# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

: eq
:
$* <<EOI >>EOO
cmd == 1
EOI
cmd == 1
EOO

: ne
:
$* <<EOI >>EOO
cmd!=1
EOI
cmd != 1
EOO

: end
:
$* <<EOI 2>>EOE != 0
cmd != 1 <"foo"
EOI
testscript:1:10: error: unexpected '<' after command exit status
EOE