diff --git a/compiler/testData/codegen/box/reflection/noReflectAtRuntime/javaClass.kt b/compiler/testData/codegen/box/reflection/noReflectAtRuntime/javaClass.kt index 4c69fe63939..ddf1a3a1d3b 100644 --- a/compiler/testData/codegen/box/reflection/noReflectAtRuntime/javaClass.kt +++ b/compiler/testData/codegen/box/reflection/noReflectAtRuntime/javaClass.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JVM_IR // TARGET_BACKEND: JVM - // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/classReference.kt b/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/classReference.kt index a17811e5ac6..6dc12d9422c 100644 --- a/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/classReference.kt +++ b/compiler/testData/codegen/box/reflection/noReflectAtRuntime/methodsFromAny/classReference.kt @@ -1,6 +1,4 @@ -// IGNORE_BACKEND: JVM_IR // TARGET_BACKEND: JVM - // WITH_RUNTIME import kotlin.reflect.KClass diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrBlackBoxCodegenTest.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrBlackBoxCodegenTest.kt index 1e876f9164a..95080c417a0 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrBlackBoxCodegenTest.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/codegen/ir/AbstractIrBlackBoxCodegenTest.kt @@ -30,7 +30,11 @@ abstract class AbstractIrBlackBoxCodegenTest : AbstractBlackBoxCodegenTest() { //symbols are constructed with stdlib descriptors so stdlib should be presented // TODO rewrite symbols building override fun extractConfigurationKind(files: MutableList): ConfigurationKind { - return ConfigurationKind.ALL + val result = super.extractConfigurationKind(files) + return when (result) { + ConfigurationKind.JDK_NO_RUNTIME, ConfigurationKind.JDK_ONLY -> ConfigurationKind.NO_KOTLIN_REFLECT + else -> result + } } override fun getBackend() = TargetBackend.JVM_IR