Skip to content

Commit 20ad25f

Browse files
committed
Disable SecurityManager when IDEA is active
Otherwise, we have to keep our coroutine debugger disabled all the time: it attempts to read system property and fails on start
1 parent eb1b5db commit 20ad25f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kotlinx-coroutines-core/build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ jvmTest {
177177
minHeapSize = '1g'
178178
maxHeapSize = '1g'
179179
enableAssertions = true
180-
systemProperty 'java.security.manager', 'kotlinx.coroutines.TestSecurityManager'
180+
if (!Idea.active) { // Workaround for KT-42671
181+
systemProperty 'java.security.manager', 'kotlinx.coroutines.TestSecurityManager'
182+
}
181183
// 'stress' is required to be able to run all subpackage tests like ":jvmTests --tests "*channels*" -Pstress=true"
182184
if (!Idea.active && rootProject.properties['stress'] == null) {
183185
exclude '**/*StressTest.*'

0 commit comments

Comments
 (0)