diff --git a/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/TargetBackend.kt b/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/TargetBackend.kt index 1989b3c6206..cc52f67307b 100644 --- a/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/TargetBackend.kt +++ b/compiler/test-infrastructure-utils/tests/org/jetbrains/kotlin/test/TargetBackend.kt @@ -11,7 +11,6 @@ enum class TargetBackend( ) { ANY(false), JVM(false), - JVM_OLD(false, JVM), JVM_IR(true, JVM), JVM_MULTI_MODULE_IR_AGAINST_OLD(true, JVM_IR), JVM_MULTI_MODULE_OLD_AGAINST_IR(false, JVM), diff --git a/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/initializerBlock.kt b/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/initializerBlock.kt index 74809757211..60e9677b91a 100644 --- a/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/initializerBlock.kt +++ b/compiler/testData/codegen/box/controlStructures/breakContinueInExpressions/inlinedBreakContinue/initializerBlock.kt @@ -1,5 +1,5 @@ // LANGUAGE: +BreakContinueInInlineLambdas -// IGNORE_BACKEND: JVM, JVM_OLD +// IGNORE_BACKEND: JVM // WITH_STDLIB import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/customScript/captureImplicitReceiverInDefaultValue.kts b/compiler/testData/codegen/customScript/captureImplicitReceiverInDefaultValue.kts index 0bdcd0fae77..3ea836605b8 100644 --- a/compiler/testData/codegen/customScript/captureImplicitReceiverInDefaultValue.kts +++ b/compiler/testData/codegen/customScript/captureImplicitReceiverInDefaultValue.kts @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, NATIVE, WASM, JVM_OLD +// TARGET_BACKEND: JVM_IR // KOTLIN_SCRIPT_DEFINITION: org.jetbrains.kotlin.codegen.TestScriptWithReceivers // receiver: abracadabra diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmIrAgainstOldBoxTest.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmIrAgainstOldBoxTest.kt index 6452ad83d93..a5488223c39 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmIrAgainstOldBoxTest.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/runners/codegen/AbstractJvmIrAgainstOldBoxTest.kt @@ -45,5 +45,5 @@ open class AbstractJvmIrAgainstOldBoxInlineTest : AbstractBoxInlineWithDifferent open class AbstractJvmOldAgainstIrBoxInlineTest : AbstractBoxInlineWithDifferentBackendsTest( targetBackend = TargetBackend.JVM_MULTI_MODULE_OLD_AGAINST_IR, backendForLib = TargetBackend.JVM_IR, - backendForMain = TargetBackend.JVM_OLD + backendForMain = TargetBackend.JVM ) diff --git a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt index 5479572e0de..4c3bcbc1eb9 100644 --- a/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt +++ b/compiler/tests-for-compiler-generator/tests/org/jetbrains/kotlin/test/generators/GenerateJUnit3CompilerTests.kt @@ -110,11 +110,11 @@ fun generateJUnit3CompilerTests(args: Array) { } testClass { - model("codegen/customScript", pattern = "^(.*)$") + model("codegen/customScript", pattern = "^(.*)$", targetBackend = TargetBackend.JVM) } testClass { - model("codegen/customScript", pattern = "^(.*)$") + model("codegen/customScript", pattern = "^(.*)$", targetBackend = TargetBackend.JVM_IR) } testClass { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/CustomScriptCodegenTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/CustomScriptCodegenTestGenerated.java index 6439ee525ae..c55a4308236 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/CustomScriptCodegenTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/CustomScriptCodegenTestGenerated.java @@ -9,6 +9,7 @@ import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; import org.junit.runner.RunWith; @@ -22,16 +23,11 @@ import java.util.regex.Pattern; @RunWith(JUnit3RunnerWithInners.class) public class CustomScriptCodegenTestGenerated extends AbstractCustomScriptCodegenTest { private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath); } public void testAllFilesPresentInCustomScript() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, true); - } - - @TestMetadata("captureImplicitReceiverInDefaultValue.kts") - public void testCaptureImplicitReceiverInDefaultValue_kts() throws Exception { - runTest("compiler/testData/codegen/customScript/captureImplicitReceiverInDefaultValue.kts"); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, TargetBackend.JVM, true); } @TestMetadata("pathPattern5.kts") diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/IrCustomScriptCodegenTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/IrCustomScriptCodegenTestGenerated.java index e370792865c..699696b65ef 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/IrCustomScriptCodegenTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/IrCustomScriptCodegenTestGenerated.java @@ -9,6 +9,7 @@ import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.util.KtTestUtil; +import org.jetbrains.kotlin.test.TargetBackend; import org.jetbrains.kotlin.test.TestMetadata; import org.junit.runner.RunWith; @@ -22,11 +23,11 @@ import java.util.regex.Pattern; @RunWith(JUnit3RunnerWithInners.class) public class IrCustomScriptCodegenTestGenerated extends AbstractIrCustomScriptCodegenTest { private void runTest(String testDataFilePath) throws Exception { - KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); } public void testAllFilesPresentInCustomScript() throws Exception { - KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, true); + KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/customScript"), Pattern.compile("^(.*)$"), null, TargetBackend.JVM_IR, true); } @TestMetadata("captureImplicitReceiverInDefaultValue.kts") diff --git a/compiler/tests/org/jetbrains/kotlin/codegen/AbstractCustomScriptCodegenTest.kt b/compiler/tests/org/jetbrains/kotlin/codegen/AbstractCustomScriptCodegenTest.kt index 451bfba0ec2..c69f8dda366 100644 --- a/compiler/tests/org/jetbrains/kotlin/codegen/AbstractCustomScriptCodegenTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/codegen/AbstractCustomScriptCodegenTest.kt @@ -31,8 +31,6 @@ import kotlin.script.experimental.jvm.util.scriptCompilationClasspathFromContext abstract class AbstractCustomScriptCodegenTest : CodegenTestCase() { private lateinit var scriptDefinitions: List - override val backend = TargetBackend.JVM_OLD - override fun setUp() { super.setUp()