diff options
author | Anthony Green <green@redhat.com> | 2002-03-27 16:29:04 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-03-27 16:29:04 +0000 |
commit | fe4dabf80cd3cd52d00056d36bc19ad03d182872 (patch) | |
tree | 54dc1f778f1aa5fda58358acb738f1e864da3244 | |
parent | 30cc8722743d42b734b0227f2f6dabb3cf3f2952 (diff) | |
download | gcc-fe4dabf80cd3cd52d00056d36bc19ad03d182872.zip gcc-fe4dabf80cd3cd52d00056d36bc19ad03d182872.tar.gz gcc-fe4dabf80cd3cd52d00056d36bc19ad03d182872.tar.bz2 |
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: r51453
-rw-r--r-- | libjava/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/testsuite/libjava.jni/jni.exp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index 097d0aa..bb98b6d 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -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. diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp index 049383e..724b254 100644 --- a/libjava/testsuite/libjava.jni/jni.exp +++ b/libjava/testsuite/libjava.jni/jni.exp @@ -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 { |