libjava.exp (test_libjava_from_javac): Prepend `$objdir/' to class file names.
authorTom Tromey <tromey@cygnus.com>
Fri, 25 Jun 1999 13:55:59 +0000 (13:55 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 25 Jun 1999 13:55:59 +0000 (13:55 +0000)
* lib/libjava.exp (test_libjava_from_javac): Prepend `$objdir/' to
class file names.

From-SVN: r27771

libjava/testsuite/ChangeLog
libjava/testsuite/lib/libjava.exp

index 47e493d..d7fe22c 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-25  Tom Tromey  <tromey@cygnus.com>
+
+       * lib/libjava.exp (test_libjava_from_javac): Prepend `$objdir/' to
+       class file names.
+
 1999-06-24  Tom Tromey  <tromey@cygnus.com>
 
        * lib/libjava.exp (libjava_arguments): If `libtool' not found in
index 78818fc..88380d1 100644 (file)
@@ -366,10 +366,13 @@ proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile e
     # nothing if the file contains an interface and not a class.  I
     # believe this is a jv-scan bug.
     if {$class_out == ""} then {
-       set class_files [file rootname [file tail $srcfile]].class
+       set class_files $objdir/[file rootname [file tail $srcfile]].class
     } else {
        # Turn "a b" into "a.class b.class".
-       set class_files [join [split [string trim $class_out]] ".class "].class
+       set class_files {}
+        foreach file [split [string trim $class_out]] {
+           lappend class_out $objdir/$file.class
+       }
     }
 
     # Usually it is an error for a test program not to have a `main'