diff options
author | Tom Tromey <tromey@redhat.com> | 2003-03-22 07:14:53 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-03-22 07:14:53 +0000 |
commit | 6932a1994e035982ca387d7d66b32e53b8e3bce0 (patch) | |
tree | 173dacf5d424f802b24bc491f512bcdbaaeb8592 /libjava/testsuite/libjava.jni/jni.exp | |
parent | 442c0874ea857deaed375a626f848ac97a4fbcaf (diff) | |
download | gcc-6932a1994e035982ca387d7d66b32e53b8e3bce0.zip gcc-6932a1994e035982ca387d7d66b32e53b8e3bce0.tar.gz gcc-6932a1994e035982ca387d7d66b32e53b8e3bce0.tar.bz2 |
libjava.exp (gcj_invoke): Moved...
* lib/libjava.exp (gcj_invoke): Moved...
* libjava.jni/jni.exp: ...from here.
* libjava.cni/shortfield.out: New file.
* libjava.cni/shortfield.java: New file.
* libjava.cni/natshortfield.cc: New file.
* libjava.cni/natlongfield.cc: New file.
* libjava.cni/longfield.out: New file.
* libjava.cni/longfield.java: New file.
* libjava.cni/cni.exp: New file.
From-SVN: r64702
Diffstat (limited to 'libjava/testsuite/libjava.jni/jni.exp')
-rw-r--r-- | libjava/testsuite/libjava.jni/jni.exp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp index 2aec4c9..6d6c93d 100644 --- a/libjava/testsuite/libjava.jni/jni.exp +++ b/libjava/testsuite/libjava.jni/jni.exp @@ -43,50 +43,6 @@ proc gcj_jni_build_header {file} { return 1 } -# Invoke the program and see what happens. Return 0 on failure. -proc gcj_invoke {program expectFile ld_library_additions} { - global env - set lib_path $env(LD_LIBRARY_PATH) - - set newval . - if {[llength $ld_library_additions] > 0} { - append newval :[join $ld_library_additions :] - } - append newval :$lib_path - - setenv LD_LIBRARY_PATH $newval - setenv SHLIB_PATH $newval - - verbose "LD_LIBRARY_PATH=$env(LD_LIBRARY_PATH)" - - set result [libjava_load ./$program] - set status [lindex $result 0] - set output [lindex $result 1] - - # Restore setting - setenv LD_LIBRARY_PATH $lib_path - setenv SHLIB_PATH $lib_path - - if {$status != "pass"} { - verbose "got $output" - fail "$program run" - untested "$program output" - return 0 - } - - set id [open $expectFile r] - set expected [read $id] - close $id - - if {! [string compare $output $expected]} { - pass "$program output" - return 1 - } else { - fail "$program output" - return 0 - } -} - # Do all the work for a single JNI test. Return 0 on failure. proc gcj_jni_test_one {file} { global runtests |