Skip to content

Commit

Permalink
Use '-Xcheck:jni' during testsuite run to detect JNI bugs (#826)
Browse files Browse the repository at this point in the history
Motivation:

We should run our testsuite with '-Xcheck:jni' to ensure we catch bugs
in our JNI code which could later cause issues like crashes

Modifications:

- Add -Xcheck:jni

Result:

Testsuite will be able to catch more JNI bugs
  • Loading branch information
normanmaurer authored Sep 27, 2023
1 parent 33b2338 commit c6ee3b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@
<runOrder>random</runOrder>
<!-- Ensure the whole stacktrace is preserved when an exception is thrown. See https://issues.apache.org/jira/browse/SUREFIRE-1457 -->
<trimStackTrace>false</trimStackTrace>
<!-- Always check JNI during test run so we catch bugs that could cause crashes -->
<argLine>-ea -Xcheck:jni</argLine>
</configuration>
</plugin>

Expand Down

0 comments on commit c6ee3b9

Please sign in to comment.