From: Stefano Lattarini Date: Wed, 11 Apr 2012 20:02:37 +0000 (+0200) Subject: self checks: avoid spurious failures when keep_testdirs=yes X-Git-Tag: v1.11d~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af779b87d72abcc70a67544b1ad95d342f213747;p=thirdparty%2Fautomake.git self checks: avoid spurious failures when keep_testdirs=yes * t/self-check-cleanup.tap, t/self-check-dir.tap: Unset the 'keep_testdirs' environment variable, to avoid spurious errors when the testsuite is run with "keep_testdirs=yes make check". Signed-off-by: Stefano Lattarini --- diff --git a/t/self-check-cleanup.tap b/t/self-check-cleanup.tap index 5ea1a6ebc..a56854b47 100755 --- a/t/self-check-cleanup.tap +++ b/t/self-check-cleanup.tap @@ -34,6 +34,7 @@ diff "$am_top_builddir"/defs-static defs-static \ cp "$am_top_builddir"/defs . AM_TESTS_REEXEC=no; export AM_TESTS_REEXEC +keep_testdirs=; unset keep_testdirs if ln -s defs foo && test -h foo; then have_symlinks=yes diff --git a/t/self-check-dir.tap b/t/self-check-dir.tap index 322677a9f..736238c35 100755 --- a/t/self-check-dir.tap +++ b/t/self-check-dir.tap @@ -25,6 +25,7 @@ am_create_testdir=no plan_ 5 AM_TESTS_REEXEC=no; export AM_TESTS_REEXEC +keep_testdirs=; unset keep_testdirs # This needs to be consistent with what $SHELL deems to be the # current working directory.