From 94cf82271335976f4ac2cb5baafb1ccb74e97e52 Mon Sep 17 00:00:00 2001 From: sullis Date: Fri, 26 Jan 2024 17:12:09 -0800 Subject: [PATCH] run test suite with 'Xcheck:jni' JVM argument (#1734) Run the test suite with "Xcheck:jni" so that we can detect any critical JNI problems --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index f1e638ff73..840bf91619 100644 --- a/build.gradle +++ b/build.gradle @@ -90,6 +90,12 @@ subprojects { ] } + tasks.withType(Test).configureEach { + jvmArgs += [ + "-Xcheck:jni" + ] + } + test { useJUnitPlatform() testLogging {