From: Stefano Lattarini Date: Wed, 2 Jun 2010 19:45:57 +0000 (+0200) Subject: Tests defs: $srcdir is unconditionally substituted. X-Git-Tag: ng-0.5a~351^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=521dda8c24be40219aaff2611ec30c8501494389;p=thirdparty%2Fautomake.git Tests defs: $srcdir is unconditionally substituted. * tests/defs.in ($srcdir): Define unconditionally to @abs_srcdir@. Remove code $srcdir normalization, which is now useless. --- diff --git a/ChangeLog b/ChangeLog index 572a37e87..a42df97ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-09-06 Stefano Lattarini + + Tests defs: $srcdir is unconditionally substituted. + * tests/defs.in ($srcdir): Define unconditionally to @abs_srcdir@. + Remove code for $srcdir normalization, which is now useless. + 2010-09-02 Stefano Lattarini Tests defs: make spacing more consistent. diff --git a/tests/defs.in b/tests/defs.in index fe2dbafec..109c458a5 100644 --- a/tests/defs.in +++ b/tests/defs.in @@ -21,7 +21,7 @@ # Tom Tromey # 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.