From 04ada3d0ea53d4ea8e21e080edc6886642459590 Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Fri, 13 Mar 2020 14:54:21 +0300 Subject: [PATCH] Disable leak tests on wasm32 (#3978) --- backend.native/tests/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index fa7cce225a4..ae42d5f30e5 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -1030,6 +1030,7 @@ 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 } @@ -1037,6 +1038,7 @@ standaloneTest("leakWorker") { } 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 } @@ -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" } @@ -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 } @@ -4260,4 +4264,4 @@ if (PlatformInfo.getTarget(project) == KonanTarget.IOS_ARM64.INSTANCE) { it instanceof KonanLinkTest } .forEach { it.enabled = false } -} \ No newline at end of file +}