Disable leak tests on wasm32 (#3978)

This commit is contained in:
Alexander Shabalin
2020-03-13 14:54:21 +03:00
committed by GitHub
parent da0e56edea
commit 04ada3d0ea
+5 -1
View File
@@ -1030,6 +1030,7 @@ task enumIdentity(type: KonanLocalTest) {
} }
standaloneTest("leakWorker") { standaloneTest("leakWorker") {
disabled = project.globalTestArgs.contains('-opt') || (project.testTarget == 'wasm32') // Needs debug build and pthreads.
source = "runtime/workers/leak_worker.kt" source = "runtime/workers/leak_worker.kt"
flags = ['-g'] flags = ['-g']
expectedExitStatusChecker = { it != 0 } expectedExitStatusChecker = { it != 0 }
@@ -1037,6 +1038,7 @@ standaloneTest("leakWorker") {
} }
standaloneTest("leakMemoryWithWorkerTermination") { standaloneTest("leakMemoryWithWorkerTermination") {
disabled = project.globalTestArgs.contains('-opt') || (project.testTarget == 'wasm32') // Needs debug build and pthreads.
source = "runtime/workers/leak_memory_with_worker_termination.kt" source = "runtime/workers/leak_memory_with_worker_termination.kt"
flags = ['-g'] flags = ['-g']
expectedExitStatusChecker = { it != 0 } expectedExitStatusChecker = { it != 0 }
@@ -2743,6 +2745,7 @@ standaloneTest("memory_only_gc") {
} }
task memory_stable_ref_cross_thread_check(type: KonanLocalTest) { task memory_stable_ref_cross_thread_check(type: KonanLocalTest) {
disabled = project.testTarget == 'wasm32' // Needs workers.
source = "runtime/memory/stable_ref_cross_thread_check.kt" source = "runtime/memory/stable_ref_cross_thread_check.kt"
} }
@@ -2753,6 +2756,7 @@ standaloneTest("cycle_collector") {
} }
standaloneTest("leakMemory") { standaloneTest("leakMemory") {
disabled = project.globalTestArgs.contains('-opt') || (project.testTarget == 'wasm32') // Needs debug build.
source = "runtime/memory/leak_memory.kt" source = "runtime/memory/leak_memory.kt"
flags = ['-g'] flags = ['-g']
expectedExitStatusChecker = { it != 0 } expectedExitStatusChecker = { it != 0 }
@@ -4260,4 +4264,4 @@ if (PlatformInfo.getTarget(project) == KonanTarget.IOS_ARM64.INSTANCE) {
it instanceof KonanLinkTest it instanceof KonanLinkTest
} }
.forEach { it.enabled = false } .forEach { it.enabled = false }
} }