Skip to content

Commit

Permalink
Disable SecurityManager when IDEA is active
Browse files Browse the repository at this point in the history
Otherwise, we have to keep our coroutine debugger disabled all the time: it attempts to read system property and fails on start
  • Loading branch information
qwwdfsad committed Oct 16, 2020
1 parent eb1b5db commit 20ad25f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kotlinx-coroutines-core/build.gradle
Expand Up @@ -177,7 +177,9 @@ jvmTest {
minHeapSize = '1g'
maxHeapSize = '1g'
enableAssertions = true
systemProperty 'java.security.manager', 'kotlinx.coroutines.TestSecurityManager'
if (!Idea.active) { // Workaround for KT-42671
systemProperty 'java.security.manager', 'kotlinx.coroutines.TestSecurityManager'
}
// 'stress' is required to be able to run all subpackage tests like ":jvmTests --tests "*channels*" -Pstress=true"
if (!Idea.active && rootProject.properties['stress'] == null) {
exclude '**/*StressTest.*'
Expand Down

0 comments on commit 20ad25f

Please sign in to comment.