tests: strengthen the trailing spaces check

* tests/calc.at: here.
* data/glr.c: Fix accordingly.
This commit is contained in:
Akim Demaille
2012-08-03 11:16:03 +02:00
parent 52cc1ebda2
commit 3995c0533b
2 changed files with 4 additions and 2 deletions

View File

@@ -855,7 +855,7 @@ yyuserMerge (int yyn, YYSTYPE* yy0, YYSTYPE* yy1)
switch (yyn)
{
]b4_mergers[
]b4_mergers[
default: break;
}
}

View File

@@ -506,7 +506,9 @@ m4_define([AT_CHECK_SPACES],
[# No initial empty lines.
AT_CHECK([sed -ne '/./q;=;p;' $1])
# 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.
AT_CHECK([sed -ne '${/^$/{=;p;};}' $1])
])