From: Stefano Lattarini Date: Sun, 24 Apr 2011 08:22:05 +0000 (+0200) Subject: tests: fix spurious failure in a test on TESTS (VPATH-related) X-Git-Tag: v1.11.1b~26^2~40^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b3470c0ed6070f6b8d7ce7878284aa0c08aac13;p=thirdparty%2Fautomake.git tests: fix spurious failure in a test on TESTS (VPATH-related) * check-tests-in-builddir.test: When not using the parallel-tests option, do not check that VPATH components are not present in the displayed test name, since the simple-tests driver do not try to strip them. --- diff --git a/ChangeLog b/ChangeLog index 3750915a9..e19021c2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-04-24 Stefano Lattarini + + tests: fix spurious failure in a test on TESTS (VPATH-related) + * check-tests-in-builddir.test: When not using the parallel-tests + option, do not check that VPATH components are not present in the + displayed test name, since the simple-tests driver do not try to + strip them. + 2011-02-06 Stefano Lattarini tests: tweak few tests on simple and parallel test drivers diff --git a/tests/check-tests-in-builddir.test b/tests/check-tests-in-builddir.test index 2d0e423c0..b588f11ed 100755 --- a/tests/check-tests-in-builddir.test +++ b/tests/check-tests-in-builddir.test @@ -55,16 +55,27 @@ chmod a+x bar.test $MAKE check >out 2>&1 || { cat out; Exit1; } cat out -grep '\.\./foo' out && Exit 1 -grep '^PASS: foo.test *$' out +# The simple-tests driver does not strip VPATH components from +# the name of the test, but the parallel-tests driver should. +if test x"$parallel_tests" = x"yes"; then + grep '\.\./foo' out && Exit 1 + grep '^PASS: foo.test *$' out +else + grep '^PASS: .*foo.test *$' out +fi grep '^PASS: bar.test *$' out rm -f test-suite.log foo.log bar.log FOO_EXIT_STATUS=1 $MAKE check >out 2>&1 && { cat out; Exit1; } cat out -grep '\.\./foo' out && Exit 1 -grep '^FAIL: foo.test *$' out +# See comments above. +if test x"$parallel_tests" = x"yes"; then + grep '\.\./foo' out && Exit 1 + grep '^FAIL: foo.test *$' out +else + grep '^FAIL: .*foo.test *$' out +fi grep '^PASS: bar.test *$' out rm -f test-suite.log foo.log bar.log