From 23b41dc75e1423480e5e40d4076dbd36ab7372ee Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Tue, 11 Jan 2011 01:10:44 +0100 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ tests/yflags-conditional.test | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8ff0799..f53d5c9 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 91e3da4..1dcdef9 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 -- 2.7.4