diff options
author | Andreas Tobler <a.tobler@schweiz.ch> | 2004-05-10 22:44:13 +0200 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2004-05-10 22:44:13 +0200 |
commit | 3f68457e242692040fd149dae74d522704f7fc81 (patch) | |
tree | 37d6a392390fcfb74725e8e9b9b772e4e30a1f2c /libjava/testsuite/libjava.jni | |
parent | 3358cae044c142e1aafc4c59dbcaba1d1e100cf7 (diff) | |
download | gcc-3f68457e242692040fd149dae74d522704f7fc81.zip gcc-3f68457e242692040fd149dae74d522704f7fc81.tar.gz gcc-3f68457e242692040fd149dae74d522704f7fc81.tar.bz2 |
libjava.exp (libjava_invoke): Add new argument ld_library_additions.
2004-05-10 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/lib/libjava.exp (libjava_invoke): Add new argument
ld_library_additions. Adjust all calls to libjava_invoke to match
the new argument.
* testsuite/libjava.jni/jni.exp (gcj_jni_test_one): Pass stdc++
path to cxxflagslist.
Pass path of libstdc++ to libjava_invoke.
* testsuite/libjava.jar/jar.exp (gcj_jar_inerpret): Adjust
libjava_invoke arguments.
From-SVN: r81679
Diffstat (limited to 'libjava/testsuite/libjava.jni')
-rw-r--r-- | libjava/testsuite/libjava.jni/jni.exp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp index 5ca07ab..b1f6d4e 100644 --- a/libjava/testsuite/libjava.jni/jni.exp +++ b/libjava/testsuite/libjava.jni/jni.exp @@ -126,6 +126,9 @@ proc gcj_jni_test_one {file} { } } lappend cxxflaglist $arg + # In case the libstdc++ is not installed yet, we pass the build + # directory of it to the cxxflaglist. + lappend cxxflaglist "-L$cxxldlibflags" } lappend cxxflaglist "-lstdc++" @@ -149,17 +152,19 @@ proc gcj_jni_test_one {file} { # FIXME return 0 } - + # We purposely ignore errors here; we still want to run the other # appropriate tests. set errname [file rootname [file tail $file]] set gij [libjava_find_gij] # libjava_find_gij will return `gij' if it couldn't find the # program; in this case we want to skip the test. - if {$INTERPRETER == "yes" && $gij != "gij"} { - libjava_invoke $errname "gij test" opts $gij \ - "" $resultfile $main - } + # If the libraries are not installed yet, we have to pass them via + # cxxldlibflags to libjava_invoke. + if {$INTERPRETER == "yes" && $gij != "gij"} { + libjava_invoke $errname "gij test" opts $gij \ + "" $resultfile $cxxldlibflags $main + } # When we succeed we remove all our clutter. eval gcj_cleanup [glob -nocomplain -- ${main}.*] [list $main lib${main}.${so_extension}] |