tests: GCC 4.5 compliance.

* tests/synclines.at (AT_SYNCLINES_COMPILE): Adjust to GCC 4.5's
	messages about #error.
This commit is contained in:
Akim Demaille
2009-08-12 16:18:12 +02:00
parent 9f14e18736
commit 28169bab1f
2 changed files with 18 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2009-08-12 Akim Demaille <demaille@gostai.com>
tests: GCC 4.5 compliance.
* tests/synclines.at (AT_SYNCLINES_COMPILE): Adjust to GCC 4.5's
messages about #error.
2009-08-12 Akim Demaille <demaille@gostai.com>
build: fix the generation of the documentation.

View File

@@ -34,7 +34,18 @@ m4_define([AT_SYNCLINES_COMPILE],
# =>
# input.y:4: #error "4"
#
AT_CHECK([[sed -e 's/^\([^:]*:[^:.]*\)[.:][^:]*:\(.*\)$/\1:\2/' -e 's/^\([^:]*:[^:]*:\)[^@%:@]*\( @%:@error\)/\1\2/' stderr]], 0, [stdout])
# It may also issue more context information:
#
# input.y: In function 'yyparse':
# input.y:8: #error "8"
# =>
# input.y:4: #error "8"
#
AT_CHECK([[sed -e 's/^\([^:]*:[^:.]*\)[.:][^:]*:\(.*\)$/\1:\2/' \
-e 's/^\([^:]*:[^:]*:\)[^@%:@]*\( @%:@error\)/\1\2/' \
-e "/^[^:]*: In function '[^\']*':$/d" \
stderr]],
0, [stdout])
])
# AT_TEST_SYNCLINE(TITLE, INPUT, ERROR-MSG)