]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: avoid possibly undeserved PASS from check8.test
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 27 Jan 2012 13:14:46 +0000 (14:14 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 27 Jan 2012 13:14:46 +0000 (14:14 +0100)
* tests/check8.test: Strengthen grepping of "make check" output
where we know no problem with VPATH rewrites can take place.  This
has the advantage of ensuring that we won't match also "sub/bar"
when looking for "bar" during the uncolorized tests.

Suggestion by Peter Rosin.

tests/check8.test

index dc8d3dda71e6abe221d3e8178f5e010f476ee9dc..a9e57306402377431455133369742747bce41417 100755 (executable)
@@ -87,12 +87,14 @@ cd build
 ../configure
 $MAKE check >stdout && { cat stdout; Exit 1; }
 cat stdout
-# Note: we are not grepping for the space here, due to the Solaris make VPATH
-# rewriting (if we fix that, we can still write a separate test for it).
+# Note: we are not grepping for the space in the lines from the 'foo'
+# tests, due to the Solaris make VPATH rewriting (if we fix that, we
+# can still write a separate test for it).
 grep 'XPASS.*foo$' stdout
 grep '^[^X]*PASS.*sub/foo$' stdout
-grep '^[^X]*PASS.*bar' stdout
-grep '^[^X]*PASS.*sub/bar' stdout
-grep '^[^X]*FAIL.*baz' stdout
-grep 'XFAIL.*sub/baz' stdout
+grep '^[^X]*PASS.* bar' stdout
+grep '^[^X]*PASS.* sub/bar' stdout
+grep '^[^X]*FAIL.* baz' stdout
+grep 'XFAIL.* sub/baz' stdout
+
 :