* defs: Ensure srcdir is always absolute.
authorTom Tromey <tromey@redhat.com>
Sat, 10 Apr 1999 22:51:16 +0000 (22:51 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 10 Apr 1999 22:51:16 +0000 (22:51 +0000)
tests/ChangeLog
tests/defs

index 8de7b43..1276f89 100644 (file)
@@ -1,5 +1,7 @@
 1999-04-10  Tom Tromey  <tromey@cygnus.com>
 
+       * defs: Ensure srcdir is always absolute.
+
        * Makefile.am (XFAIL_TESTS): Removed cond8.test.
 
        * gcj2.test: New file.
index d21540a..e66f96b 100644 (file)
@@ -8,13 +8,14 @@ test -f $srcdir/defs || {
    exit 1
 }
 
-# If srcdir is relative, we need to modify it.
+# Always use an absolute srcdir.  Otherwise symlinks made in subdirs
+# of the test dir just won't work.
 case "$srcdir" in
  /*)
     ;;
 
  *)
-    srcdir="../$srcdir"
+    srcdir="`cd $srcdir && pwd`"
     ;;
 esac