OSDN Git Service

* g++.old-deja/old-deja.exp: Strip leading directories.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 May 1998 20:56:17 +0000 (20:56 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 May 1998 20:56:17 +0000 (20:56 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20034 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/old-deja.exp

index 4a6eb05..90eca68 100644 (file)
@@ -1,5 +1,7 @@
 1998-05-24  Jason Merrill  <jason@yorick.cygnus.com>
 
+       * g++.old-deja/old-deja.exp: Strip leading directories.
+
        * lib/old-dejagnu.exp: All tests fail if we got an internal compiler
        error for the line.  Don't run multiple tests for the same line.
 
index 87cdb2e..3567f51 100644 (file)
@@ -43,10 +43,11 @@ global GXX_UNDER_TEST
 # main test loop
 #
 
-
+set dirlen [expr [string length "$srcdir/$subdir"] + 1];
 foreach file [lsort [find $srcdir/$subdir *.C]] {
     # If we're only testing specific files and this isn't one of them, skip it.
-    if ![runtest_file_p $runtests $file] then {
+    set tfile [string range $file $dirlen end];
+    if ![runtest_file_p $runtests $tfile] then {
        continue
     }
     verbose "Testing $file"