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:
Akim Demaille
2019-02-20 17:37:46 +01:00
parent 4848092bf8
commit a11c144609
15 changed files with 129 additions and 129 deletions

View File

@@ -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.