From 4bb6410ce3ba5086ccdd23d4187261c0acba50a7 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Mon, 20 Apr 2020 11:53:25 +0300 Subject: [PATCH] [FIR TEST] Temporary ignore overrideDefaultArgument test (KT-38416) This test enters an infinite loop and can't finish --- .../codegen/box/coroutines/overrideDefaultArgument.kt | 3 ++- .../kotlin/codegen/ir/AbstractFirBlackBoxCodegenTest.kt | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt b/compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt index 2e9ea6dfc37..7d6cf416457 100644 --- a/compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt +++ b/compiler/testData/codegen/box/coroutines/overrideDefaultArgument.kt @@ -1,7 +1,8 @@ -// IGNORE_BACKEND_FIR: JVM_IR // WITH_RUNTIME // WITH_COROUTINES // COMMON_COROUTINES_TEST + +// TODO (SPECIAL IGNORE_BACKEND_FIR): this test isn't run in FIR mode at all due to infinite loop import helpers.* import COROUTINES_PACKAGE.* import COROUTINES_PACKAGE.intrinsics.* diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractFirBlackBoxCodegenTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractFirBlackBoxCodegenTest.kt index c1e8d1916ca..a486d861e16 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractFirBlackBoxCodegenTest.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractFirBlackBoxCodegenTest.kt @@ -14,4 +14,13 @@ abstract class AbstractFirBlackBoxCodegenTest : AbstractIrBlackBoxCodegenTest() configuration.put(CommonConfigurationKeys.USE_FIR, true) configuration.put(JVMConfigurationKeys.IR, true) } + + override fun doTest(filePath: String) { + if (filePath.endsWith("overrideDefaultArgument.kt")) { + // TODO: made to prevent infinite loop in the particular test + // Remove me when fixed + return + } + super.doTest(filePath) + } }