automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {maint} tests: fix some spurious failures in VPATH setup


From: Stefano Lattarini
Subject: [FYI] {maint} tests: fix some spurious failures in VPATH setup
Date: Fri, 22 Jun 2012 15:58:00 +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 <address@hidden>
---
 t/self-check-cleanup.tap |    6 ++----
 t/self-check-reexec.tap  |    9 ---------
 2 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/t/self-check-cleanup.tap b/t/self-check-cleanup.tap
index 01636f4..d379c43 100755
--- a/t/self-check-cleanup.tap
+++ b/t/self-check-cleanup.tap
@@ -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" \
diff --git a/t/self-check-reexec.tap b/t/self-check-reexec.tap
index 3a4bcda..3feeb62 100755
--- a/t/self-check-reexec.tap
+++ b/t/self-check-reexec.tap
@@ -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 ()
 {
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]