mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
tests: adjust to GCC9 diagnostics with a margin
* tests/synclines.at (_AT_SYNCLINES_COMPILE): Remove the margin.
This commit is contained in:
@@ -90,7 +90,17 @@ m4_define([_AT_SYNCLINES_COMPILE],
|
|||||||
# syncline.c:4:2: error: #error "4"
|
# syncline.c:4:2: error: #error "4"
|
||||||
# #error "4"
|
# #error "4"
|
||||||
# ^~~~~
|
# ^~~~~
|
||||||
|
#
|
||||||
|
# GCC 9 displays a left-hand margin with the line number:
|
||||||
|
#
|
||||||
|
# syncline.c: In function 'foo':
|
||||||
|
# syncline.c:4:2: error: #error "4"
|
||||||
|
# 4 | #error "4"
|
||||||
|
# | ^~~~~
|
||||||
AT_CHECK([[$PERL -p -0777 - stderr <<\EOF
|
AT_CHECK([[$PERL -p -0777 - stderr <<\EOF
|
||||||
|
# Remove left-hand margin.
|
||||||
|
s/^[\d ]{6}\| //gm;
|
||||||
|
|
||||||
# 1. Remove useless lines.
|
# 1. Remove useless lines.
|
||||||
|
|
||||||
# distcc clutter.
|
# distcc clutter.
|
||||||
|
|||||||
Reference in New Issue
Block a user