mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 08:13: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:
@@ -392,7 +392,7 @@ m4_define([_AT_CHECK_CALC],
|
||||
[AT_DATA([[input]],
|
||||
[[$2
|
||||
]])
|
||||
AT_PARSER_CHECK([./calc input], 0, [], [stderr])
|
||||
AT_PARSER_CHECK([calc input], 0, [], [stderr])
|
||||
])
|
||||
|
||||
|
||||
@@ -419,11 +419,11 @@ AT_PARSER_CHECK([./calc input], 0, [], [stderr])
|
||||
# is the number of expected lines on stderr.
|
||||
m4_define([_AT_CHECK_CALC_ERROR],
|
||||
[m4_bmatch([$3], [^/],
|
||||
[AT_PARSER_CHECK([./calc $3], $2, [], [stderr])],
|
||||
[AT_PARSER_CHECK([calc $3], $2, [], [stderr])],
|
||||
[AT_DATA([[input]],
|
||||
[[$3
|
||||
]])
|
||||
AT_PARSER_CHECK([./calc input], $2, [], [stderr])])
|
||||
AT_PARSER_CHECK([calc input], $2, [], [stderr])])
|
||||
|
||||
# Normalize the observed and expected error messages, depending upon the
|
||||
# options.
|
||||
|
||||
Reference in New Issue
Block a user