tests: work in VPATH setup again
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 22 Jun 2012 13:14:20 +0000 (15:14 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 22 Jun 2012 13:14:20 +0000 (15:14 +0200)
* defs: Drop overly paranoid sanity checks that was causing all the tests
to fail spuriously when run in a VPATH setup, with a message like:
"../t/nodef.sh: ./t/ax/test-init.sh: not found in current directory".
Those checks looked for invariants that, even if broken, would still
cause the test to fail very early and with a pretty clear error message
anyway.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
defs

diff --git a/defs b/defs
index 559eea0493f42c152bcce3236c4425cdf9c8a0c2..a47a54117ab911da82d742f703448ce1060ea77b 100644 (file)
--- a/defs
+++ b/defs
 # might be just a Bourne shell, non POSIX-conforming, like on Solaris
 # up to version 11 at least).
 
-# Ensure we are running from the right directory.
-for f in defs-static t/ax/test-init.sh; do
-  if test ! -f ./$f; then
-   echo "$0: ./$f: not found in current directory" >&2
-   exit 99
-  fi
-done
-
 # Source the shell static setup and variable definitions.
 . ./defs-static
 test $? -eq 0 || exit 99