From: Akim Demaille Date: Fri, 3 Aug 2012 09:16:03 +0000 (+0200) Subject: tests: strengthen the trailing spaces check X-Git-Tag: v2.7.90~354 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/3995c0533b1ef1c3f7cbb95b9b45e5cb80865050?ds=inline tests: strengthen the trailing spaces check * tests/calc.at: here. * data/glr.c: Fix accordingly. --- diff --git a/data/glr.c b/data/glr.c index 7675ac33..ce81510b 100644 --- a/data/glr.c +++ b/data/glr.c @@ -855,7 +855,7 @@ yyuserMerge (int yyn, YYSTYPE* yy0, YYSTYPE* yy1) switch (yyn) { - ]b4_mergers[ +]b4_mergers[ default: break; } } diff --git a/tests/calc.at b/tests/calc.at index 89cc59ea..03530a0c 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -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]) ])