self checks: avoid spurious failures when keep_testdirs=yes
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 11 Apr 2012 20:02:37 +0000 (22:02 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 11 Apr 2012 20:05:59 +0000 (22:05 +0200)
* 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 <stefano.lattarini@gmail.com>
t/self-check-cleanup.tap
t/self-check-dir.tap

index 5ea1a6e..a56854b 100755 (executable)
@@ -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
index 322677a..736238c 100755 (executable)
@@ -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.