diff options
author | Tom Tromey <tromey@redhat.com> | 2002-03-17 20:34:36 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-03-17 20:34:36 +0000 |
commit | 6e1a435df002c87da258a71a64a43720b17d1631 (patch) | |
tree | 1d54de9ae106f579674e911763cfe9a9066565da /libjava/testsuite/libjava.jni/jni.exp | |
parent | 804db0c6df9776632d7611eaec001c6113d0f8e5 (diff) | |
download | gcc-6e1a435df002c87da258a71a64a43720b17d1631.zip gcc-6e1a435df002c87da258a71a64a43720b17d1631.tar.gz gcc-6e1a435df002c87da258a71a64a43720b17d1631.tar.bz2 |
re PR other/5874 (gcc-3.1 20020304 (prerelease) FAILs in libjava testsuite with RUNTESTFLAGS="--target_board 'unix{-fPIC,-fpic,}'")
* libjava.jni/jni.exp (gcj_jni_build_header): Use local_exec, not
target_compile. Fixes PR other/5874.
From-SVN: r50923
Diffstat (limited to 'libjava/testsuite/libjava.jni/jni.exp')
-rw-r--r-- | libjava/testsuite/libjava.jni/jni.exp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp index f052766..8dd8b8a 100644 --- a/libjava/testsuite/libjava.jni/jni.exp +++ b/libjava/testsuite/libjava.jni/jni.exp @@ -30,11 +30,10 @@ proc gcj_jni_compile_c_to_so {file {options {}}} { proc gcj_jni_build_header {file} { set gcjh [find_gcjh] set file [file rootname $file] - set options [list "compiler=$gcjh" \ - "additional_flags=-jni"] - set x [prune_warnings [target_compile $file "" none $options]] + set x [string trim [prune_warnings \ + [lindex [local_exec "$gcjh -jni $file" "" "" 300] 1]]] if {$x != ""} { - verbose "target_compile failed: $x" 2 + verbose "local_exec failed: $x" 2 fail "$file header generation" return 0 } |