From ab4603c9a3b109e88d38f44428bf29fa05f5c7f3 Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Thu, 15 Dec 2022 12:22:44 +0100 Subject: [PATCH] [K/N] Mute LLDB tests if any other than DEBUG opt mode is used --- .../support/group/StandardTestCaseGroupProvider.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/group/StandardTestCaseGroupProvider.kt b/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/group/StandardTestCaseGroupProvider.kt index 1d4281cf1e7..aa85f94b185 100644 --- a/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/group/StandardTestCaseGroupProvider.kt +++ b/native/native.tests/tests/org/jetbrains/kotlin/konan/blackboxtest/support/group/StandardTestCaseGroupProvider.kt @@ -49,7 +49,9 @@ internal class StandardTestCaseGroupProvider : TestCaseGroupProvider { val testCases = includedTestDataFiles.map { testDataFile -> createTestCase(testDataFile, settings) } val lldbTestCases = testCases.filter { it.kind == TestKind.STANDALONE_LLDB } - if (lldbTestCases.isNotEmpty() && !settings.get().isAvailable) { + if (lldbTestCases.isNotEmpty() + && (settings.get() != OptimizationMode.DEBUG || !settings.get().isAvailable) + ) { lldbTestCases.mapTo(disabledTestCaseIds) { it.id } }