From: Stefano Lattarini Date: Tue, 11 Jan 2011 00:10:44 +0000 (+0100) Subject: tests: fix spurious failure in 'tests/yflags-conditional.test' X-Git-Tag: ng-0.5a~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23b41dc75e1423480e5e40d4076dbd36ab7372ee;p=thirdparty%2Fautomake.git tests: fix spurious failure in 'tests/yflags-conditional.test' * tests/yflags-conditional.test: Filter out message "warnings are treated as errors" from automake stderr, to avoid a false positive when grepping for extraneous warning messages. --- diff --git a/ChangeLog b/ChangeLog index 8ff079944..f53d5c931 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-01-11 Stefano Lattarini + + tests: fix spurious failure in 'tests/yflags-conditional.test' + * tests/yflags-conditional.test: Filter out message "warnings are + treated as errors" from automake stderr, to avoid a false positive + when grepping for extraneous warning messages. + 2011-01-10 Stefano Lattarini yacc: warn about conditional content in *YFLAGS variables diff --git a/tests/yflags-conditional.test b/tests/yflags-conditional.test index 91e3da4f0..1dcdef957 100755 --- a/tests/yflags-conditional.test +++ b/tests/yflags-conditional.test @@ -135,7 +135,9 @@ grep '^Makefile4\.am:8:.*zardoz_YFLAGS.* conditional contents' stderr # Disable `gnu' warnings because we override the user variable `YFLAGS'. AUTOMAKE_fails -Wno-gnu Makefile5 -grep -v '^Makefile5\.am:.*zardoz_YFLAGS' stderr | grep . && Exit 1 +grep -v '^Makefile5\.am:.*zardoz_YFLAGS' stderr \ + | grep -v ': warnings are treated as errors' \ + | grep . && Exit 1 # Disable `gnu' warnings because we override the user variable `YFLAGS'. $AUTOMAKE -Wno-gnu Makefile6