* tests/defs.in ($srcdir): Define unconditionally to @abs_src...@. Remove code $srcdir normalization, which is now useless. --- ChangeLog | 4 ++++ tests/defs.in | 14 +------------- 2 files changed, 5 insertions(+), 13 deletions(-)
From c0b54eea25d97cc462337ca078fbd4f26238fb54 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini <stefano.lattar...@gmail.com> Date: Wed, 2 Jun 2010 21:45:57 +0200 Subject: [PATCH 1/4] Tests defs: $srcdir is unconditionally substituted.
* tests/defs.in ($srcdir): Define unconditionally to @abs_src...@. Remove code $srcdir normalization, which is now useless. --- ChangeLog | 4 ++++ tests/defs.in | 14 +------------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 572a37e..5d881e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-09-02 Stefano Lattarini <stefano.lattar...@gmail.com> + Tests defs: $srcdir is unconditionally substituted. + * tests/defs.in ($srcdir): Define unconditionally to @abs_src...@. + Remove code for $srcdir normalization, which is now useless. + Tests defs: make spacing more consistent. * tests/defs.in: Make spacing more consistent in indentation. Especially, indent using only spaces, not tabs. Also, move diff --git a/tests/defs.in b/tests/defs.in index fe2dbaf..109c458 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -21,7 +21,7 @@ # Tom Tromey <tro...@cygnus.com> # Absolutely necessary variable(s). -srcdir=${srcdir-'@abs_srcdir@'} +srcdir='@abs_srcdir@' # Protect this file against multiple inclusion, useful for generated tests. if test x"$am_skip_defs" = xyes; then @@ -234,18 +234,6 @@ do esac done - -# Always use an absolute srcdir. Otherwise symlinks made in subdirs -# of the test dir just won't work. -case "$srcdir" in - [\\/]* | ?:[\\/]*) - ;; - - *) - srcdir=`CDPATH=: && cd "$srcdir" && pwd` - ;; -esac - # We use a trap below for cleanup. This requires us to go through # hoops to get the right exit status transported through the signal. # So use `Exit STATUS' instead of `exit STATUS' inside of the tests. -- 1.7.1