automake-patches
[Top][All Lists]
Advanced

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

[PATCH 1/4] {branch "tests-init"} Tests defs: $srcdir is unconditionally


From: Stefano Lattarini
Subject: [PATCH 1/4] {branch "tests-init"} Tests defs: $srcdir is unconditionally substituted.
Date: Fri, 3 Sep 2010 00:14:18 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

* tests/defs.in ($srcdir): Define unconditionally to @address@hidden
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 <address@hidden>
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 @address@hidden
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  <address@hidden>
 
+       Tests defs: $srcdir is unconditionally substituted.
+       * tests/defs.in ($srcdir): Define unconditionally to @address@hidden
+       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 <address@hidden>
 
 # 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


reply via email to

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