Skip to content

Commit

Permalink
Use '-Xcheck:jni' during testsuite run to detect JNI bugs (#218)
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 d12f163 commit 377bca9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport-native-io_uring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
</properties>
<!-- Ensure the whole stacktrace is preserved when an exception is thrown. See https://issues.apache.org/jira/browse/SUREFIRE-1457 -->
<trimStackTrace>false</trimStackTrace>
<argLine>${test.argLine}</argLine>
<argLine>-ea -Xcheck:jni ${test.argLine}</argLine>
<!-- Ensure a new JVM is used -->
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
Expand Down Expand Up @@ -305,7 +305,7 @@
</properties>
<!-- Ensure the whole stacktrace is preserved when an exception is thrown. See https://issues.apache.org/jira/browse/SUREFIRE-1457 -->
<trimStackTrace>false</trimStackTrace>
<argLine>${test.argLine}</argLine>
<argLine>-ea -Xcheck:jni ${test.argLine}</argLine>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit 377bca9

Please sign in to comment.