Skip to content

Commit

Permalink
Disable leak tests on wasm32 (JetBrains#3978)
Browse files Browse the repository at this point in the history
  • Loading branch information
projedi authored Mar 13, 2020
1 parent da0e56e commit 04ada3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend.native/tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1030,13 +1030,15 @@ task enumIdentity(type: KonanLocalTest) {
}

standaloneTest("leakWorker") {
disabled = project.globalTestArgs.contains('-opt') || (project.testTarget == 'wasm32') // Needs debug build and pthreads.
source = "runtime/workers/leak_worker.kt"
flags = ['-g']
expectedExitStatusChecker = { it != 0 }
outputChecker = { s -> s.contains("Unfinished workers detected, 1 workers leaked!") }
}

standaloneTest("leakMemoryWithWorkerTermination") {
disabled = project.globalTestArgs.contains('-opt') || (project.testTarget == 'wasm32') // Needs debug build and pthreads.
source = "runtime/workers/leak_memory_with_worker_termination.kt"
flags = ['-g']
expectedExitStatusChecker = { it != 0 }
Expand Down Expand Up @@ -2743,6 +2745,7 @@ standaloneTest("memory_only_gc") {
}

task memory_stable_ref_cross_thread_check(type: KonanLocalTest) {
disabled = project.testTarget == 'wasm32' // Needs workers.
source = "runtime/memory/stable_ref_cross_thread_check.kt"
}

Expand All @@ -2753,6 +2756,7 @@ standaloneTest("cycle_collector") {
}

standaloneTest("leakMemory") {
disabled = project.globalTestArgs.contains('-opt') || (project.testTarget == 'wasm32') // Needs debug build.
source = "runtime/memory/leak_memory.kt"
flags = ['-g']
expectedExitStatusChecker = { it != 0 }
Expand Down Expand Up @@ -4260,4 +4264,4 @@ if (PlatformInfo.getTarget(project) == KonanTarget.IOS_ARM64.INSTANCE) {
it instanceof KonanLinkTest
}
.forEach { it.enabled = false }
}
}

0 comments on commit 04ada3d

Please sign in to comment.