-
Notifications
You must be signed in to change notification settings - Fork 123
Check whether JNI plugin is broken due to JNA Gradle migration [JNA bindings] #3758
Comments
Thank you for reporting the problem! Yes, good if you double-check if maven is gone everywhere (except of the external tests, I think we should support also external Maven projects). |
The JNI plugin uses Maven to add the unit tests. Since Maven was removed from most/all Dockerfiles etc. the JNI tests are not executed anywhere to my knowledge. Can you update JNI to use Gradle? Edit: You can find the relevant CMake somewhere here libelektra/src/plugins/jni/CMakeLists.txt Lines 38 to 41 in 7e9ac3a
|
Yes, it would be important to get these tests running. They might reveal problems in the JNI plugin. |
I will have look at it today... |
|
You can add TODOs with |
I'm still trying to get it to work, but to be clear, the tests have been explicitly disabled before because of L42: libelektra/src/plugins/jni/CMakeLists.txt Lines 38 to 46 in 7e9ac3a
From the git history, it seems to be disabled for years... or does someone build Elektra with ENABLE_BROKEN_TESTS somewhere? |
Good that you found that. I think it was temporarily disabled and then forgotten.
It is not tested in our CI, which is what matters. Please remove the |
- removed maven dependency for JNI test - re-enabled test - TODO fix test
I've created PR #3825. Test is enabled and maven dependency has been removed. How can i execute the single "testmod_jni" test to see what is the problem? |
|
On Cirrus CI, Fedora 34 it says:
|
getting the same thing:
Does someone with more C experience has time to debug the test? |
@tucek can you try to reduce which test case causes the double free? Can you run it with valgrind and post the log? (remove MEMLEAK in line 49 and run |
I've changed
am I missing a dependency? Reproduction: |
You need |
still getting the same output after successfully installing valgrind:
|
@tucek did you try to completely remove the build directory? I don't think cmake checks for valgrind again later. Btw. if you do this in a PR, we should be also be able to download the artifacts from the buildserver. |
run_memcheck.out.txt |
I answered in #3825 |
* updated gradle to 7.0 * removed debug output
- removed maven dependency for JNI test - re-enabled test - TODO fix test
* updated gradle to 7.0 * removed debug output
- removed maven dependency for JNI test - re-enabled test - TODO fix test
* updated gradle to 7.0 * removed debug output
There might still be a reference to Maven in regard to using the JNI plugin.
The text was updated successfully, but these errors were encountered: