jni.exp (gcj_jni_run): Fix cross build test.
authorAnthony Green <green@redhat.com>
Wed, 27 Mar 2002 16:29:04 +0000 (16:29 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 27 Mar 2002 16:29:04 +0000 (16:29 +0000)
2002-03-27  Anthony Green  <green@redhat.com>

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

From-SVN: r51453

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

index 097d0aadf27955fb0bd5b484e52d18e0153ae5b6..bb98b6d5d068160c41c23368eee3fa5a53853ecf 100644 (file)
@@ -1,3 +1,7 @@
+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
index 049383eb17795b833339a1af0d72b2b877307975..724b2545acb0670d63e9c2606883aefa13fb95ce 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 {