From 2c20a71d08ed27d6d778d4d2e80c5296e0647b44 Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Tue, 26 Apr 2022 02:09:50 +0200 Subject: [PATCH] [Codegen tests] Specify JVM as target backend for inferenceFlexibleTToNullable.kt --- .../box/platformTypes/inferenceFlexibleTToNullable.kt | 3 +-- .../jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java | 6 ------ .../kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java | 6 ------ .../wasm/semantics/IrCodegenBoxWasmTestGenerated.java | 5 ----- .../konan/blackboxtest/NativeCodegenBoxTestGenerated.java | 6 ------ 5 files changed, 1 insertion(+), 25 deletions(-) diff --git a/compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt b/compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt index 53e50e428f2..4583b7e4e1c 100644 --- a/compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt +++ b/compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt @@ -1,5 +1,4 @@ -// IGNORE_BACKEND: JS, JS_IR, NATIVE -// IGNORE_BACKEND: JS_IR_ES6 +// TARGET_BACKEND: JVM // FILE: Foo.java import org.jetbrains.annotations.NotNull; diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java index 34430f46825..78968ecf88f 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenBoxTestGenerated.java @@ -23609,12 +23609,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true); } - @Test - @TestMetadata("inferenceFlexibleTToNullable.kt") - public void testInferenceFlexibleTToNullable() throws Exception { - runTest("compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt"); - } - @Nested @TestMetadata("compiler/testData/codegen/box/platformTypes/primitives") @TestDataPath("$PROJECT_ROOT") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java index 9ca64771247..0cad136d417 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java @@ -23573,12 +23573,6 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true); } - @Test - @TestMetadata("inferenceFlexibleTToNullable.kt") - public void testInferenceFlexibleTToNullable() throws Exception { - runTest("compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt"); - } - @Nested @TestMetadata("compiler/testData/codegen/box/platformTypes/primitives") @TestDataPath("$PROJECT_ROOT") diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java index d942f27f22a..af32b884a50 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxWasmTestGenerated.java @@ -21080,11 +21080,6 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true); } - @TestMetadata("inferenceFlexibleTToNullable.kt") - public void testInferenceFlexibleTToNullable() throws Exception { - runTest("compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt"); - } - @TestMetadata("compiler/testData/codegen/box/platformTypes/primitives") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java index f688fe8bc61..d6fe2ed5d08 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java @@ -26362,12 +26362,6 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/platformTypes"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true); } - @Test - @TestMetadata("inferenceFlexibleTToNullable.kt") - public void testInferenceFlexibleTToNullable() throws Exception { - runTest("compiler/testData/codegen/box/platformTypes/inferenceFlexibleTToNullable.kt"); - } - @Nested @TestMetadata("compiler/testData/codegen/box/platformTypes/primitives") @TestDataPath("$PROJECT_ROOT")