2002-03-27 Anthony Green <green@redhat.com>
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Mar 2002 16:29:04 +0000 (16:29 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Mar 2002 16:29:04 +0000 (16:29 +0000)
* libjava.jni/jni.exp (gcj_jni_run): Fix cross build test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51453 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.jni/jni.exp

index 097d0aa..bb98b6d 100644 (file)
@@ -1,5 +1,9 @@
 2002-03-27  Anthony Green  <green@redhat.com>
 
+       * libjava.jni/jni.exp (gcj_jni_run): Fix cross build test.
+
+2002-03-27  Anthony Green  <green@redhat.com>
+
        * lib/libjava.exp: Add the wrapper link options only when we're
        linking.
 
index 049383e..724b254 100644 (file)
@@ -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 {