Patch: Run JNI tests using interpreter

Bryce McKinlay mckinlay@redhat.com
Thu May 6 01:15:00 GMT 2004


There are some JNI problems that potentially show up only when using the 
interpreter. So, it makes sense that we run the jni test suite using the 
interpreter in addition to native. This patch adds the neccessary code 
to jni.exp.

One problem showed up, in that jni.exp was appending c++ flags 
(-lstdc++) to the main binary of c++ JNI test cases, and not the JNI 
shared library itself. This worked for native tests but isn't really 
correct, since its the .so which has the c++ lib dependency. Of course 
it broke when trying to run with the interpreter because gij is not 
linked with libstdc++.

Tom, does this patch look ok to you?

Bryce


-------------- next part --------------
A non-text attachment was scrubbed...
Name: jni-testsuite.patch
Type: text/x-patch
Size: 2425 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040506/b6ac128a/attachment.bin>


More information about the Java-patches mailing list