mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +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:
@@ -1020,7 +1020,7 @@ AT_COMPILE([c-only.o], [c-only.c])
|
||||
AT_COMPILE_CXX([cxx-only.o], [cxx-only.cc])
|
||||
AT_CHECK([$CXX $CXXFLAGS $CPPFLAGS $LDFLAGS c-only.o cxx-only.o -o c-and-cxx ||
|
||||
exit 77], [0], [ignore], [ignore])
|
||||
AT_PARSER_CHECK([./c-and-cxx])
|
||||
AT_PARSER_CHECK([c-and-cxx])
|
||||
])
|
||||
|
||||
|
||||
@@ -1111,7 +1111,7 @@ AT_CHECK([@&t@./exception || exit 77], [0], [], [ignore])
|
||||
# Get rid of spurious messages when compiled with --coverage:
|
||||
# +profiling:/[...]/lib/fprintf.gcda:Merge mismatch for summaries
|
||||
m4_define([AT_PARSER_CHECK],
|
||||
[AT_CHECK([$5 $PREPARSER $1], [$2], [$3], [stderr])
|
||||
[AT_CHECK([$5 $PREPARSER ./$1], [$2], [$3], [stderr])
|
||||
AT_CHECK([sed >&2 -e '/^profiling:.*:Merge mismatch for summaries/d' stderr],
|
||||
[0], [], [$4])
|
||||
])
|
||||
@@ -1263,7 +1263,7 @@ m4_bmatch([$4], [%define lr.type canonical-lr],
|
||||
fi])
|
||||
AT_COMPILE([[input]])
|
||||
|
||||
AT_PARSER_CHECK([[./input]],
|
||||
AT_PARSER_CHECK([[input]],
|
||||
m4_ifval([$10], [m4_dquote($10)]),
|
||||
m4_ifval([$11], [m4_dquote($11)]),
|
||||
m4_ifval([$12], [m4_dquote($12)]))
|
||||
|
||||
Reference in New Issue
Block a user