This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
test suite patch
- To: Java Patch List <java-patches@sourceware.cygnus.com>
- Subject: test suite patch
- From: Tom Tromey <tromey@cygnus.com>
- Date: 25 Jun 1999 15:03:55 -0600
- Reply-To: tromey@cygnus.com
I'm committing the appended patch. It lets the test suite correctly
find the generate .class files in some situations.
1999-06-25 Tom Tromey <tromey@cygnus.com>
* lib/libjava.exp (test_libjava_from_javac): Fixed typo. Always
make class_files a list.
* lib/libjava.exp (test_libjava_from_javac): Prepend `$objdir/' to
class file names.
Tom
Index: lib/libjava.exp
===================================================================
RCS file: /cvs/java/libgcj/libjava/testsuite/lib/libjava.exp,v
retrieving revision 1.6
retrieving revision 1.8
diff -u -r1.6 -r1.8
--- libjava.exp 1999/06/24 19:06:28 1.6
+++ libjava.exp 1999/06/25 13:59:09 1.8
@@ -366,10 +366,14 @@
# 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 \
+ [list $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_files $objdir/$file.class
+ }
}
# Usually it is an error for a test program not to have a `main'