From 7623d5e3eb1c867e496f14b29f431670a9f9a64c Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Mon, 20 Nov 2023 22:22:48 +0000 Subject: [PATCH] [K/N][test] Disable array allocation test on Linux The test allocates a lot of memory and can cause OOM-killer on Linux with 16 Gb RAM or less kill Gradle daemon. Merge-request: KT-MR-13131 Merged-by: Pavel Punegov --- kotlin-native/backend.native/tests/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kotlin-native/backend.native/tests/build.gradle b/kotlin-native/backend.native/tests/build.gradle index 744084bf201..6dd07b704b3 100644 --- a/kotlin-native/backend.native/tests/build.gradle +++ b/kotlin-native/backend.native/tests/build.gradle @@ -2840,6 +2840,9 @@ standaloneTest("stress_gc_allocations") { } standaloneTest("array_out_of_memory") { + // This test allocs a large array that may make Linux + // kill any process inlcuding Gradle with OOM-killer + enabled = project.target.family != Family.LINUX source = "runtime/memory/array_out_of_memory.kt" flags = ['-tr'] switch(project.target.architecture) {