]> git.saurik.com Git - bison.git/blobdiff - tests/synclines.at
portability: fix test suite for GCC 4.5's new #error message.
[bison.git] / tests / synclines.at
index a3bc06d455bc50b0c0c774c902deadd3483624fc..d773962552ff05ed89065edd2a86b22831dc8b0b 100644 (file)
@@ -90,7 +90,9 @@ AT_CHECK([[test "`cat stdout`" = 'syncline.c:1: @%:@error "1"' || exit 77]])
 AT_DATA([[input.y]], [$2])
 AT_BISON_CHECK([-o input.c input.y])
 AT_SYNCLINES_COMPILE([input.c])
-AT_CHECK([cat stdout], 0, [$3])
+# GCC 4.5 tells you the function within which #error appears, but
+# previous versions of gcc do not.
+AT_CHECK([grep -v ': In function ' stdout], 0, [$3])
 AT_CLEANUP
 ])