This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

test suite patch


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'

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]