mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
tests: strengthen the trailing spaces check
* tests/calc.at: here. * data/glr.c: Fix accordingly.
This commit is contained in:
@@ -855,7 +855,7 @@ yyuserMerge (int yyn, YYSTYPE* yy0, YYSTYPE* yy1)
|
|||||||
|
|
||||||
switch (yyn)
|
switch (yyn)
|
||||||
{
|
{
|
||||||
]b4_mergers[
|
]b4_mergers[
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -506,7 +506,9 @@ m4_define([AT_CHECK_SPACES],
|
|||||||
[# No initial empty lines.
|
[# No initial empty lines.
|
||||||
AT_CHECK([sed -ne '/./q;=;p;' $1])
|
AT_CHECK([sed -ne '/./q;=;p;' $1])
|
||||||
# No trailing spaces.
|
# No trailing spaces.
|
||||||
# FIXME: For 2.7: AT_CHECK([sed -ne '/[ ]$/{=;p;}' $1])
|
AT_CHECK([sed -ne '/[ ]$/{=;p;}' $1])
|
||||||
|
# No tabulations.
|
||||||
|
AT_CHECK([sed -ne '/[ ]/{=;p;}' $1])
|
||||||
# No final empty lines.
|
# No final empty lines.
|
||||||
AT_CHECK([sed -ne '${/^$/{=;p;};}' $1])
|
AT_CHECK([sed -ne '${/^$/{=;p;};}' $1])
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user