Patch: fix JNI testsuite

Anthony Green green@redhat.com
Thu Mar 21 11:55:00 GMT 2002


The JNI tests currently aren't supposed to run for cross toolchains.  
Unfortunately this never worked due to host -vs- target confusion.

Ok for branch and trunk?

AG


2002-03-21  Anthony Green  <green@redhat.com>

	* libjava.jni/jni.exp (gcj_jni_run): Fix cross build test.  


Index: libjava/testsuite/libjava.jni/jni.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.jni/jni.exp,v
retrieving revision 1.4.8.2
diff -u -p -r1.4.8.2 jni.exp
--- jni.exp	2002/03/18 21:38:47	1.4.8.2
+++ jni.exp	2002/03/21 19:35:51
@@ -163,10 +163,10 @@ proc gcj_jni_test_one {file} {
 # Run the JNI tests.
 proc gcj_jni_run {} {
   global srcdir subdir
-  global target_triplet host_triplet
+  global build_triplet host_triplet
 
   # For now we only test JNI on native builds.
-  if {$target_triplet == $host_triplet} {
+  if {$build_triplet == $host_triplet} {
     catch "glob -nocomplain ${srcdir}/${subdir}/*.java" srcfiles
 
     foreach x $srcfiles {





More information about the Java-patches mailing list