mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
tests: fix usage of AT_PARSER_CHECK
The parser must be the first command. Caught by syntax-check. * tests/c++.at: here.
This commit is contained in:
11
tests/c++.at
11
tests/c++.at
@@ -1015,19 +1015,22 @@ AT_FOR_EACH_CXX([
|
|||||||
|
|
||||||
# Leave enough valid tokens to make sure we recovered from the
|
# Leave enough valid tokens to make sure we recovered from the
|
||||||
# previous error, otherwise we might hide some error messages
|
# previous error, otherwise we might hide some error messages
|
||||||
# (discarded during error recovery).
|
# (discarded during error recoevery).
|
||||||
AT_PARSER_CHECK([[echo "asaaalaa" | ./input ]], [[0]], [[]],
|
echo "asaaalaa" >in
|
||||||
|
AT_PARSER_CHECK([[./input < in]], [[0]], [[]],
|
||||||
[[error: invalid expression
|
[[error: invalid expression
|
||||||
caught error
|
caught error
|
||||||
error: invalid character
|
error: invalid character
|
||||||
caught error
|
caught error
|
||||||
]])
|
]])
|
||||||
|
|
||||||
AT_PARSER_CHECK([[echo "!as" | ./input ]], [1], [],
|
echo "!as" >in
|
||||||
|
AT_PARSER_CHECK([[./input < in]], [1], [],
|
||||||
[[error: invalid expression
|
[[error: invalid expression
|
||||||
]])
|
]])
|
||||||
|
|
||||||
AT_PARSER_CHECK([[echo "!al" | ./input ]], [1], [],
|
echo "!al" >in
|
||||||
|
AT_PARSER_CHECK([[./input < in]], [1], [],
|
||||||
[[error: invalid character
|
[[error: invalid character
|
||||||
]])
|
]])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user