diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-01-27 14:14:46 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-01-27 14:14:46 +0100 |
commit | be0a696aac24a55f8281e9585c87a14138206eb5 (patch) | |
tree | 9c8806e134fcb34413e9a6a77364e1eaced5f2c4 | |
parent | b6c3ed5e0debbeb47c4316afb62e8415ed76f26f (diff) | |
download | automake-be0a696aac24a55f8281e9585c87a14138206eb5.tar.gz |
tests: avoid possibly undeserved PASS from check8.test
* 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.
-rwxr-xr-x | tests/check8.test | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/check8.test b/tests/check8.test index dc8d3dda7..a9e573064 100755 --- a/tests/check8.test +++ b/tests/check8.test @@ -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 + : |