tests: fix some spurious failures in VPATH setup
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 22 Jun 2012 13:34:12 +0000 (15:34 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 22 Jun 2012 13:41:59 +0000 (15:41 +0200)
* t/self-check-cleanup.tap: No need to copy the 'ax/t/test-init.sh'
file over in our temporary directory.
* t/self-check-reexec.tap: Likewise.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/self-check-cleanup.tap
t/self-check-reexec.tap

index 01636f4..d379c43 100755 (executable)
@@ -48,8 +48,6 @@ do_clean_setup ()
     test ! -d $d || chmod u+rwx $d || :
   done
   rm -rf t
-  mkdir -p t/ax
-  cp "$am_top_builddir"/t/ax/test-init.sh t/ax
 }
 
 do_clean_setup
@@ -67,7 +65,7 @@ do_clean_setup
 
 # Check that pre-test cleanup works also with directories with
 # "null" permissions, and containing broken symlinks.
-mkdir t/dummy.dir t/dummy.dir/sub
+mkdir t t/dummy.dir t/dummy.dir/sub
 (
   cd t/dummy.dir
   touch file sub/file
@@ -124,7 +122,7 @@ if test $have_symlinks = yes; then
   : > file
   chmod 000 file
 
-  mkdir t/dummy.dir
+  mkdir t t/dummy.dir
   (cd t/dummy.dir && ln -s ../../dir ../../file .)
 
   command_ok_ "pre-cleanup with testdir with zero-perms symlinks" \
index 3a4bcda..3feeb62 100755 (executable)
@@ -25,15 +25,7 @@ plan_ 32
 
 unset AM_TESTS_REEXEC BASH_VERSION || :
 
-get_test_init_sh ()
-{
-  mkdir -p ${1-.}/t/ax
-  cp "$am_top_builddir"/t/ax/test-init.sh ${1-.}/t/ax \
-    || fatal_ "fetching 't/ax/test-init.sh' from top_builddir"
-}
-
 cwd=$(pwd) || fatal_ "getting current working directory"
-get_test_init_sh
 cp "$am_top_builddir"/defs . || fatal_ "fetching 'defs' from top_builddir"
 
 #
@@ -173,7 +165,6 @@ sed -e "s|^am_top_builddir=.*|am_top_builddir='$cwd'|" \
     <  "$am_top_builddir"/defs-static > defs-static
 sed -e "s|^am_top_builddir=.*|am_top_builddir='$cwd/sub'|" \
     <  "$am_top_builddir"/defs-static > sub/defs-static
-get_test_init_sh sub
 
 check_preserve_args ()
 {