tests init: don't automatically re-execute tests with a POSIX shell
[platform/upstream/automake.git] / t / self-check-dir.tap
index 96b831a..2bc2ce0 100755 (executable)
@@ -24,7 +24,6 @@ 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 $AM_TEST_RUNNER_SHELL
@@ -35,8 +34,7 @@ echo "$cwd"
 
 do_check ()
 {
-  test ! -d _self.dir || rm -rf _self.dir \
-    || framework_failure_ "cleaning up _self.dir"
+  rm -rf _self.dir || framework_failure_ "cleaning up _self.dir"
   command_ok_ "$1 [$2]" $AM_TEST_RUNNER_SHELL -c "
     $2
     . ./defs || exit 99
@@ -66,9 +64,7 @@ do_check 'do not pre-populate testdir' \
 
 do_check 'do not create nor chdir in testdir' \
          'am_create_testdir=no' \
-         'test ! -d t/_self.dir || exit 1
-          test ! -f t/_self.dir || exit 1
-          test ! -r t/_self.dir || exit 1
+         'test ! -e t/_self.dir || exit 1
           grep "self-check-dir\.tap" Makefile || exit 1
           case $(pwd) in '"$cwd"') : ;; *) exit 1;; esac'