diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-06-25 13:55:59 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-06-25 13:55:59 +0000 |
commit | 527c99b3ece2810fe4018c7e938970f3e076203b (patch) | |
tree | c25b3422f169bdf19be7effe93e8816838db6dac /libjava/testsuite/lib | |
parent | be78cbc93e75418f1693a433632090bc40a81ecb (diff) | |
download | gcc-527c99b3ece2810fe4018c7e938970f3e076203b.zip gcc-527c99b3ece2810fe4018c7e938970f3e076203b.tar.gz gcc-527c99b3ece2810fe4018c7e938970f3e076203b.tar.bz2 |
libjava.exp (test_libjava_from_javac): Prepend `$objdir/' to class file names.
* lib/libjava.exp (test_libjava_from_javac): Prepend `$objdir/' to
class file names.
From-SVN: r27771
Diffstat (limited to 'libjava/testsuite/lib')
-rw-r--r-- | libjava/testsuite/lib/libjava.exp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libjava/testsuite/lib/libjava.exp b/libjava/testsuite/lib/libjava.exp index 78818fc..88380d1 100644 --- a/libjava/testsuite/lib/libjava.exp +++ b/libjava/testsuite/lib/libjava.exp @@ -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' |