From: Stefano Lattarini Date: Fri, 17 Feb 2012 22:50:30 +0000 (+0100) Subject: tests: avoid spurious failure with FreeBSD make X-Git-Tag: v1.11b~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c11924b585cd5f626034cfbcb728d43df7e070a5;p=platform%2Fupstream%2Fautomake.git tests: avoid spurious failure with FreeBSD make * tests/parallel-tests-extra-programs.test: FreeBSD make seems to write (some) diagnostic messages on stdout instead than on stderr, so now we also grep the stdout for the expected make diagnostic. --- diff --git a/tests/parallel-tests-extra-programs.test b/tests/parallel-tests-extra-programs.test index 4a18443..3802176 100755 --- a/tests/parallel-tests-extra-programs.test +++ b/tests/parallel-tests-extra-programs.test @@ -137,8 +137,10 @@ grep '^PASS: baz\.test$' stdout # $(EXEEXT). grep '^PASS: foo\.bin' stdout grep '^PASS: bar\.bin' stdout -# Expected error messages from make. -$EGREP 'none\.(bin|o|c)' stderr +# Expected error messages from make. Some make implementations (e.g., +# FreeBSD make) seem to print the error on stdout instead, so check for +# it there as well. +$EGREP 'none\.(bin|o|c)' stderr stdout # What we check now: # 1. if we make the last EXTRA_PROGRAM buildable, the failed tests