mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
tests: simplify AT_PARSER_CHECK usage
Currently the caller must specify the ./ prefix to its command. Let's avoid that: it will be nicer to read, make it easier to have a version that works for Java and C/C++. * tests/local.at (AT_PARSER_CHECK): Prefix the command with ./. Adjust callers.
This commit is contained in:
@@ -119,13 +119,13 @@ AT_GRAM])
|
||||
|
||||
AT_BISON_CHECK([[--skeleton=yacc.c -o input-cmd-line.c input-cmd-line.y]])
|
||||
AT_COMPILE([[input-cmd-line]])
|
||||
AT_PARSER_CHECK([[./input-cmd-line]], [[1]], [],
|
||||
AT_PARSER_CHECK([[input-cmd-line]], [[1]], [],
|
||||
[[syntax error, unexpected 'a', expecting $end
|
||||
]])
|
||||
|
||||
AT_BISON_CHECK([[-o input-gram.c input-gram.y]])
|
||||
AT_COMPILE([[input-gram]])
|
||||
AT_PARSER_CHECK([[./input-gram]], [[1]], [],
|
||||
AT_PARSER_CHECK([[input-gram]], [[1]], [],
|
||||
[[syntax error, unexpected 'a', expecting $end
|
||||
]])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user