jni.exp (gcj_jni_run): Fix cross build test.

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

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

From-SVN: r51452
This commit is contained in:
Anthony Green 2002-03-27 16:28:23 +00:00 committed by Tom Tromey
parent 09d6dc7a66
commit d636ddd45d
2 changed files with 6 additions and 2 deletions

View 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

View 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 {