summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2013-01-30 15:52:34 +0100
committerAkim Demaille <akim@lrde.epita.fr>2013-04-08 13:32:47 +0200
commitde7331a0759815a4e1d5e736aa84e80ef9cd04a0 (patch)
tree3d96208eafd2dc52d252a1b4af69d9551a1cd895 /tests
parentb0db817ff28727905bfb106bd5304d31b151da65 (diff)
downloadbison-de7331a0759815a4e1d5e736aa84e80ef9cd04a0.tar.gz
build: avoid clang's colored diagnostics in the test suite
The syncline tests, which try to recognize compiler diagnostics, are confused by escapes for colors. * configure.ac (warn_tests): New, to factor the warnings for both C and C++ tests. Add -fno-color-diagnostics to it. * tests/local.at (AT_TEST_TABLES_AND_PARSE): Do not remove glue together compiler flags. Conflicts: configure.ac
Diffstat (limited to 'tests')
-rw-r--r--tests/local.at4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/local.at b/tests/local.at
index 68a7ecaa..be24f902 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -889,8 +889,8 @@ $9
# There is no "" around `wc` since some indent the result.
m4_bmatch([$4], [%define lr.type canonical-lr],
[if test 32767 -lt `wc -l < input.c`; then
- CFLAGS=`echo " $CFLAGS " | sed -e 's/ -pedantic //'`
- CXXFLAGS=`echo " $CXXFLAGS " | sed -e 's/ -pedantic //'`
+ CFLAGS=`echo " $CFLAGS " | sed -e 's/ -pedantic / /'`
+ CXXFLAGS=`echo " $CXXFLAGS " | sed -e 's/ -pedantic / /'`
fi])
AT_COMPILE([[input]])