mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
tests: ignore code coverage/profiling failure messages
The Hydra buildfarm provides code coverage analysis. For some reason, in some test cases, code coverage data seem to be incompatible, and generate error messages at parser run-time. Ignore these messages so that (i) these tests do pass, (ii) coverage results be provided by Hydra. * tests/local.at (AT_PARSER_CHECK): Ignore messages for failed merges of code coverage/profiling results.
This commit is contained in:
@@ -461,17 +461,26 @@ m4_define([AT_FULL_COMPILE], [
|
||||
## Running a generated parser. ##
|
||||
## ---------------------------- ##
|
||||
|
||||
|
||||
# AT_PARSER_CHECK(COMMAND, EXIT-STATUS, EXPOUT, EXPERR, [PRE])
|
||||
# ------------------------------------------------------------
|
||||
# So that we can run `./testsuite PREPARSER='valgrind -q' for instance.
|
||||
#
|
||||
# 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], [$4])])
|
||||
[AT_CHECK([$5 $PREPARSER $1], [$2], [$3], [stderr])
|
||||
AT_CHECK([sed >&2 -e '/^profiling:.*:Merge mismatch for summaries/d' stderr],
|
||||
[0], [], [$4])
|
||||
])
|
||||
|
||||
|
||||
# AT_JAVA_PARSER_CHECK(COMMAND, EXIT-STATUS, EXPOUT, EXPERR, [PRE])
|
||||
# -----------------------------------------------------------------
|
||||
m4_define([AT_JAVA_PARSER_CHECK],
|
||||
[AT_CHECK([$5[ $SHELL ../../../javaexec.sh ]$1], [$2], [$3], [$4])])
|
||||
|
||||
|
||||
# AT_TEST_TABLES_AND_PARSE(TITLE, COND-VALUE, TEST-SPEC,
|
||||
# DECLS, GRAMMAR, INPUT,
|
||||
# BISON-STDERR, TABLES-OR-LAST-STATE,
|
||||
|
||||
Reference in New Issue
Block a user