From 3c2f137fd5ea2e9d5477f33789a14097c10c68f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Peltier?= Date: Mon, 12 Feb 2018 16:44:40 +0100 Subject: [PATCH] Exclude tests from JS backend due to a bug into it --- .../forInArray/forInArraySpecializedToUntil.kt | 1 + .../js/test/semantics/JsCodegenBoxTestGenerated.java | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/compiler/testData/codegen/box/controlStructures/forInArray/forInArraySpecializedToUntil.kt b/compiler/testData/codegen/box/controlStructures/forInArray/forInArraySpecializedToUntil.kt index 6dc1945fcef..164bbeb1044 100644 --- a/compiler/testData/codegen/box/controlStructures/forInArray/forInArraySpecializedToUntil.kt +++ b/compiler/testData/codegen/box/controlStructures/forInArray/forInArraySpecializedToUntil.kt @@ -1,3 +1,4 @@ +// IGNORE_BACKEND: JS // WITH_RUNTIME fun checkByteArray(): Boolean { diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index 2f2b5d44e31..595318fde87 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -5720,7 +5720,13 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("forInArraySpecializedToUntil.kt") public void testForInArraySpecializedToUntil() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/forInArray/forInArraySpecializedToUntil.kt"); - doTest(fileName); + try { + doTest(fileName); + } + catch (Throwable ignore) { + return; + } + throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } @TestMetadata("forInArrayWithArrayPropertyUpdatedInLoopBody.kt")