tests: avoid spurious failure with FreeBSD make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 17 Feb 2012 22:50:30 +0000 (23:50 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 17 Feb 2012 22:50:30 +0000 (23:50 +0100)
* 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.

tests/parallel-tests-extra-programs.test

index 4a18443..3802176 100755 (executable)
@@ -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