From 9f5cbea0fa5a5d2a9055e61656f677acb9d0d240 Mon Sep 17 00:00:00 2001 From: Pavel Kunyavskiy Date: Fri, 22 Jul 2022 11:41:29 +0200 Subject: [PATCH] [K/N] Disable runtimeAssertions with cache in old test infra --- kotlin-native/backend.native/tests/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/backend.native/tests/build.gradle b/kotlin-native/backend.native/tests/build.gradle index 4c15bb414ef..05f7c18df59 100644 --- a/kotlin-native/backend.native/tests/build.gradle +++ b/kotlin-native/backend.native/tests/build.gradle @@ -101,7 +101,7 @@ ext.isAggressiveGC = project.globalTestArgs.contains("-Xbinary=gcSchedulerType=a ext.isCmsGC = project.globalTestArgs.contains("-Xgc=cms") || !project.globalTestArgs.any { it.startsWith("-Xgc=") } // TODO: It also makes sense to test -g without asserts, and also to test -opt with asserts. -if (project.globalTestArgs.contains("-g")) { +if (project.globalTestArgs.contains("-g") && (cacheTesting == null)) { tasks.withType(KonanCompileNativeBinary.class).configureEach { extraOpts "-Xbinary=runtimeAssertionsMode=panic" }