Temporary disable coroutine tests in JS backend

#KT-14924 In Progress
This commit is contained in:
Denis Zharkov
2016-11-25 16:18:04 +03:00
parent 1f98accad2
commit 27e4caf046
71 changed files with 539 additions and 67 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
class Controller { class Controller {
var exception: Throwable? = null var exception: Throwable? = null
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
class Controller { class Controller {
suspend fun suspendHere(): Any = suspendWithCurrentContinuation { x ->} suspend fun suspendHere(): Any = suspendWithCurrentContinuation { x ->}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var result = "fail" var result = "fail"
operator fun handleResult(u: Unit, c: Continuation<Nothing>) { operator fun handleResult(u: Unit, c: Continuation<Nothing>) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var result = false var result = false
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(a: String = "abc", i: Int = 2): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(a: String = "abc", i: Int = 2): String = suspendWithCurrentContinuation { x ->
x.resume(a + "#" + (i + 1)) x.resume(a + "#" + (i + 1))
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
var result = 0 var result = 0
class Controller { class Controller {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun <T> suspendHere(v: T): T = suspendWithCurrentContinuation { x -> suspend fun <T> suspendHere(v: T): T = suspendWithCurrentContinuation { x ->
x.resume(v) x.resume(v)
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// FULL_JDK // FULL_JDK
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
class Controller { class Controller {
var exception: Throwable? = null var exception: Throwable? = null
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var isCompleted = false var isCompleted = false
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var log = "" var log = ""
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
// NO_INTERCEPT_RESUME_TESTS // NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// WITH_REFLECT // WITH_REFLECT
// CHECK_NOT_CALLED: suspendInline_die06n$ // CHECK_NOT_CALLED: suspendInline_die06n$
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
var globalResult = "" var globalResult = ""
var wasCalled = false var wasCalled = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var i = 0 var i = 0
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// WITH_REFLECT // WITH_REFLECT
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit) x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit) x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit) x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit) x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit) x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit) x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
class Controller { class Controller {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit) x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// TARGET_BACKEND: JVM // TARGET_BACKEND: JVM
class Controller { class Controller {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit) x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resume("OK") x.resume("OK")
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var result = "fail" var result = "fail"
suspend fun <V> suspendHere(v: V): V = suspendWithCurrentContinuation { x -> suspend fun <V> suspendHere(v: V): V = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(v: String): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(v: String): String = suspendWithCurrentContinuation { x ->
x.resume(v) x.resume(v)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var result = "" var result = ""
var ok = false var ok = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var wasHandleResultCalled = false var wasHandleResultCalled = false
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var wasHandleResultCalled = false var wasHandleResultCalled = false
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var ok = false var ok = false
var v = "fail" var v = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
class Controller { class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// MODULE: controller // MODULE: controller
// FILE: controller.kt // FILE: controller.kt
package lib package lib
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// MODULE: controller // MODULE: controller
// FILE: controller.kt // FILE: controller.kt
package lib package lib
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var lastSuspension: Continuation<String>? = null var lastSuspension: Continuation<String>? = null
var result = "fail" var result = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var lastSuspension: Continuation<String>? = null var lastSuspension: Continuation<String>? = null
var result = "fail" var result = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var lastSuspension: Continuation<String>? = null var lastSuspension: Continuation<String>? = null
var result = "fail" var result = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var lastSuspension: Continuation<String>? = null var lastSuspension: Continuation<String>? = null
var result = "fail" var result = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
var globalResult = "" var globalResult = ""
var wasCalled = false var wasCalled = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var cResult = 0 var cResult = 0
suspend fun suspendHere(v: Int): Int = suspendWithCurrentContinuation { x -> suspend fun suspendHere(v: Int): Int = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
class Controller { class Controller {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var res = 0 var res = 0
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resume("OK") x.resume("OK")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resumeWithException(RuntimeException("OK")) x.resumeWithException(RuntimeException("OK"))
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var res = 0 var res = 0
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
var globalResult = "" var globalResult = ""
class Controller { class Controller {
suspend fun suspendWithValue(v: String): String = suspendWithCurrentContinuation { x -> suspend fun suspendWithValue(v: String): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): String = suspendThere() suspend fun suspendHere(): String = suspendThere()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
@AllowSuspendExtensions @AllowSuspendExtensions
class Controller { class Controller {
suspend fun String.suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun String.suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(v: Int): Int = suspendWithCurrentContinuation { x -> suspend fun suspendHere(v: Int): Int = suspendWithCurrentContinuation { x ->
x.resume(v * 2) x.resume(v * 2)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
var i = 0 var i = 0
suspend fun suspendHere(): Int = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): Int = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resume("K") x.resume("K")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
var globalResult = "" var globalResult = ""
var wasCalled = false var wasCalled = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
var globalResult = "" var globalResult = ""
var wasCalled = false var wasCalled = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(v: String): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(v: String): String = suspendWithCurrentContinuation { x ->
x.resume(v) x.resume(v)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
var globalResult = "" var globalResult = ""
var wasCalled = false var wasCalled = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resume("OK") x.resume("OK")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller { class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x -> suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resume("OK") x.resume("OK")
@@ -5313,55 +5313,109 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("beginWithException.kt") @TestMetadata("beginWithException.kt")
public void testBeginWithException() throws Exception { public void testBeginWithException() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/beginWithException.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/beginWithException.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("beginWithExceptionNoHandleException.kt") @TestMetadata("beginWithExceptionNoHandleException.kt")
public void testBeginWithExceptionNoHandleException() throws Exception { public void testBeginWithExceptionNoHandleException() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/beginWithExceptionNoHandleException.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/beginWithExceptionNoHandleException.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("coercionToUnit.kt") @TestMetadata("coercionToUnit.kt")
public void testCoercionToUnit() throws Exception { public void testCoercionToUnit() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/coercionToUnit.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/coercionToUnit.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("controllerAccessFromInnerLambda.kt") @TestMetadata("controllerAccessFromInnerLambda.kt")
public void testControllerAccessFromInnerLambda() throws Exception { public void testControllerAccessFromInnerLambda() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controllerAccessFromInnerLambda.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("defaultParametersInSuspend.kt") @TestMetadata("defaultParametersInSuspend.kt")
public void testDefaultParametersInSuspend() throws Exception { public void testDefaultParametersInSuspend() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/defaultParametersInSuspend.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("emptyClosure.kt") @TestMetadata("emptyClosure.kt")
public void testEmptyClosure() throws Exception { public void testEmptyClosure() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/emptyClosure.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/emptyClosure.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("falseUnitCoercion.kt") @TestMetadata("falseUnitCoercion.kt")
public void testFalseUnitCoercion() throws Exception { public void testFalseUnitCoercion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/falseUnitCoercion.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/falseUnitCoercion.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("generate.kt") @TestMetadata("generate.kt")
public void testGenerate() throws Exception { public void testGenerate() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/generate.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/generate.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("handleException.kt") @TestMetadata("handleException.kt")
public void testHandleException() throws Exception { public void testHandleException() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/handleException.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/handleException.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("handleResultCallEmptyBody.kt") @TestMetadata("handleResultCallEmptyBody.kt")
@@ -5373,115 +5427,229 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("handleResultNonUnitExpression.kt") @TestMetadata("handleResultNonUnitExpression.kt")
public void testHandleResultNonUnitExpression() throws Exception { public void testHandleResultNonUnitExpression() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/handleResultNonUnitExpression.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/handleResultNonUnitExpression.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("handleResultSuspended.kt") @TestMetadata("handleResultSuspended.kt")
public void testHandleResultSuspended() throws Exception { public void testHandleResultSuspended() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/handleResultSuspended.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/handleResultSuspended.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("inlineSuspendFunction.kt") @TestMetadata("inlineSuspendFunction.kt")
public void testInlineSuspendFunction() throws Exception { public void testInlineSuspendFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/inlineSuspendFunction.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/inlineSuspendFunction.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("inlinedTryCatchFinally.kt") @TestMetadata("inlinedTryCatchFinally.kt")
public void testInlinedTryCatchFinally() throws Exception { public void testInlinedTryCatchFinally() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/inlinedTryCatchFinally.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("innerSuspensionCalls.kt") @TestMetadata("innerSuspensionCalls.kt")
public void testInnerSuspensionCalls() throws Exception { public void testInnerSuspensionCalls() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/innerSuspensionCalls.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/innerSuspensionCalls.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("instanceOfContinuation.kt") @TestMetadata("instanceOfContinuation.kt")
public void testInstanceOfContinuation() throws Exception { public void testInstanceOfContinuation() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/instanceOfContinuation.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/instanceOfContinuation.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("iterateOverArray.kt") @TestMetadata("iterateOverArray.kt")
public void testIterateOverArray() throws Exception { public void testIterateOverArray() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/iterateOverArray.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/iterateOverArray.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("kt12958.kt") @TestMetadata("kt12958.kt")
public void testKt12958() throws Exception { public void testKt12958() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/kt12958.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/kt12958.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("lambdaParameters.kt") @TestMetadata("lambdaParameters.kt")
public void testLambdaParameters() throws Exception { public void testLambdaParameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lambdaParameters.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lambdaParameters.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("lastExpressionIsLoop.kt") @TestMetadata("lastExpressionIsLoop.kt")
public void testLastExpressionIsLoop() throws Exception { public void testLastExpressionIsLoop() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.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("lastStatementInc.kt") @TestMetadata("lastStatementInc.kt")
public void testLastStatementInc() throws Exception { public void testLastStatementInc() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastStatementInc.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastStatementInc.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("lastStementAssignment.kt") @TestMetadata("lastStementAssignment.kt")
public void testLastStementAssignment() throws Exception { public void testLastStementAssignment() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastStementAssignment.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastStementAssignment.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("lastUnitExpression.kt") @TestMetadata("lastUnitExpression.kt")
public void testLastUnitExpression() throws Exception { public void testLastUnitExpression() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastUnitExpression.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/lastUnitExpression.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("manualContinuationImpl.kt") @TestMetadata("manualContinuationImpl.kt")
public void testManualContinuationImpl() throws Exception { public void testManualContinuationImpl() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/manualContinuationImpl.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/manualContinuationImpl.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("multipleInvokeCalls.kt") @TestMetadata("multipleInvokeCalls.kt")
public void testMultipleInvokeCalls() throws Exception { public void testMultipleInvokeCalls() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCalls.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("multipleInvokeCallsInsideInlineLambda1.kt") @TestMetadata("multipleInvokeCallsInsideInlineLambda1.kt")
public void testMultipleInvokeCallsInsideInlineLambda1() throws Exception { public void testMultipleInvokeCallsInsideInlineLambda1() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.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("multipleInvokeCallsInsideInlineLambda2.kt") @TestMetadata("multipleInvokeCallsInsideInlineLambda2.kt")
public void testMultipleInvokeCallsInsideInlineLambda2() throws Exception { public void testMultipleInvokeCallsInsideInlineLambda2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.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("multipleInvokeCallsInsideInlineLambda3.kt") @TestMetadata("multipleInvokeCallsInsideInlineLambda3.kt")
public void testMultipleInvokeCallsInsideInlineLambda3() throws Exception { public void testMultipleInvokeCallsInsideInlineLambda3() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.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("nestedTryCatch.kt") @TestMetadata("nestedTryCatch.kt")
public void testNestedTryCatch() throws Exception { public void testNestedTryCatch() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/nestedTryCatch.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/nestedTryCatch.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("noSuspensionPoints.kt") @TestMetadata("noSuspensionPoints.kt")
@@ -5493,109 +5661,217 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("nonLocalReturnFromInlineLambda.kt") @TestMetadata("nonLocalReturnFromInlineLambda.kt")
public void testNonLocalReturnFromInlineLambda() throws Exception { public void testNonLocalReturnFromInlineLambda() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambda.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambda.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("nonLocalReturnFromInlineLambdaDeep.kt") @TestMetadata("nonLocalReturnFromInlineLambdaDeep.kt")
public void testNonLocalReturnFromInlineLambdaDeep() throws Exception { public void testNonLocalReturnFromInlineLambdaDeep() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambdaDeep.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/nonLocalReturnFromInlineLambdaDeep.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("returnByLabel.kt") @TestMetadata("returnByLabel.kt")
public void testReturnByLabel() throws Exception { public void testReturnByLabel() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/returnByLabel.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/returnByLabel.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("simple.kt") @TestMetadata("simple.kt")
public void testSimple() throws Exception { public void testSimple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/simple.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/simple.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("simpleException.kt") @TestMetadata("simpleException.kt")
public void testSimpleException() throws Exception { public void testSimpleException() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/simpleException.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/simpleException.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("simpleWithHandleResult.kt") @TestMetadata("simpleWithHandleResult.kt")
public void testSimpleWithHandleResult() throws Exception { public void testSimpleWithHandleResult() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/simpleWithHandleResult.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("statementLikeLastExpression.kt") @TestMetadata("statementLikeLastExpression.kt")
public void testStatementLikeLastExpression() throws Exception { public void testStatementLikeLastExpression() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/statementLikeLastExpression.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/statementLikeLastExpression.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("suspendDelegation.kt") @TestMetadata("suspendDelegation.kt")
public void testSuspendDelegation() throws Exception { public void testSuspendDelegation() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendDelegation.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendDelegation.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("suspendExtension.kt") @TestMetadata("suspendExtension.kt")
public void testSuspendExtension() throws Exception { public void testSuspendExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendExtension.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendExtension.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("suspendFromInlineLambda.kt") @TestMetadata("suspendFromInlineLambda.kt")
public void testSuspendFromInlineLambda() throws Exception { public void testSuspendFromInlineLambda() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFromInlineLambda.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendFromInlineLambda.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("suspendInCycle.kt") @TestMetadata("suspendInCycle.kt")
public void testSuspendInCycle() throws Exception { public void testSuspendInCycle() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendInCycle.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendInCycle.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("suspendInTheMiddleOfObjectConstruction.kt") @TestMetadata("suspendInTheMiddleOfObjectConstruction.kt")
public void testSuspendInTheMiddleOfObjectConstruction() throws Exception { public void testSuspendInTheMiddleOfObjectConstruction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstruction.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("tryCatchFinallyWithHandleResult.kt") @TestMetadata("tryCatchFinallyWithHandleResult.kt")
public void testTryCatchFinallyWithHandleResult() throws Exception { public void testTryCatchFinallyWithHandleResult() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.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("tryCatchWithHandleResult.kt") @TestMetadata("tryCatchWithHandleResult.kt")
public void testTryCatchWithHandleResult() throws Exception { public void testTryCatchWithHandleResult() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryCatchWithHandleResult.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("tryFinallyInsideInlineLambda.kt") @TestMetadata("tryFinallyInsideInlineLambda.kt")
public void testTryFinallyInsideInlineLambda() throws Exception { public void testTryFinallyInsideInlineLambda() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryFinallyInsideInlineLambda.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryFinallyInsideInlineLambda.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("tryFinallyWithHandleResult.kt") @TestMetadata("tryFinallyWithHandleResult.kt")
public void testTryFinallyWithHandleResult() throws Exception { public void testTryFinallyWithHandleResult() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryFinallyWithHandleResult.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/tryFinallyWithHandleResult.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("varValueConflictsWithTable.kt") @TestMetadata("varValueConflictsWithTable.kt")
public void testVarValueConflictsWithTable() throws Exception { public void testVarValueConflictsWithTable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/varValueConflictsWithTable.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/varValueConflictsWithTable.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("varValueConflictsWithTableSameSort.kt") @TestMetadata("varValueConflictsWithTableSameSort.kt")
public void testVarValueConflictsWithTableSameSort() throws Exception { public void testVarValueConflictsWithTableSameSort() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/varValueConflictsWithTableSameSort.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/varValueConflictsWithTableSameSort.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("compiler/testData/codegen/box/coroutines/controlFlow") @TestMetadata("compiler/testData/codegen/box/coroutines/controlFlow")
@@ -5609,67 +5885,133 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("breakFinally.kt") @TestMetadata("breakFinally.kt")
public void testBreakFinally() throws Exception { public void testBreakFinally() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/breakFinally.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/breakFinally.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("breakStatement.kt") @TestMetadata("breakStatement.kt")
public void testBreakStatement() throws Exception { public void testBreakStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/breakStatement.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/breakStatement.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("doWhileStatement.kt") @TestMetadata("doWhileStatement.kt")
public void testDoWhileStatement() throws Exception { public void testDoWhileStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/doWhileStatement.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("forContinue.kt") @TestMetadata("forContinue.kt")
public void testForContinue() throws Exception { public void testForContinue() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/forContinue.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/forContinue.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("forStatement.kt") @TestMetadata("forStatement.kt")
public void testForStatement() throws Exception { public void testForStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/forStatement.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/forStatement.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("ifStatement.kt") @TestMetadata("ifStatement.kt")
public void testIfStatement() throws Exception { public void testIfStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/ifStatement.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/ifStatement.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("returnFromFinally.kt") @TestMetadata("returnFromFinally.kt")
public void testReturnFromFinally() throws Exception { public void testReturnFromFinally() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/returnFromFinally.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/returnFromFinally.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("switchLikeWhen.kt") @TestMetadata("switchLikeWhen.kt")
public void testSwitchLikeWhen() throws Exception { public void testSwitchLikeWhen() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/switchLikeWhen.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/switchLikeWhen.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("throwFromCatch.kt") @TestMetadata("throwFromCatch.kt")
public void testThrowFromCatch() throws Exception { public void testThrowFromCatch() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/throwFromCatch.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/throwFromCatch.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("throwInTryWithHandleResult.kt") @TestMetadata("throwInTryWithHandleResult.kt")
public void testThrowInTryWithHandleResult() throws Exception { public void testThrowInTryWithHandleResult() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/throwInTryWithHandleResult.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/throwInTryWithHandleResult.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("whileStatement.kt") @TestMetadata("whileStatement.kt")
public void testWhileStatement() throws Exception { public void testWhileStatement() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/whileStatement.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/controlFlow/whileStatement.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.");
} }
} }
@@ -5684,49 +6026,97 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("complicatedMerge.kt") @TestMetadata("complicatedMerge.kt")
public void testComplicatedMerge() throws Exception { public void testComplicatedMerge() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/complicatedMerge.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/complicatedMerge.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("i2bResult.kt") @TestMetadata("i2bResult.kt")
public void testI2bResult() throws Exception { public void testI2bResult() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/i2bResult.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/i2bResult.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("loadFromBooleanArray.kt") @TestMetadata("loadFromBooleanArray.kt")
public void testLoadFromBooleanArray() throws Exception { public void testLoadFromBooleanArray() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromBooleanArray.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromBooleanArray.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("loadFromByteArray.kt") @TestMetadata("loadFromByteArray.kt")
public void testLoadFromByteArray() throws Exception { public void testLoadFromByteArray() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromByteArray.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/loadFromByteArray.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("noVariableInTable.kt") @TestMetadata("noVariableInTable.kt")
public void testNoVariableInTable() throws Exception { public void testNoVariableInTable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/noVariableInTable.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/noVariableInTable.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("sameIconst1ManyVars.kt") @TestMetadata("sameIconst1ManyVars.kt")
public void testSameIconst1ManyVars() throws Exception { public void testSameIconst1ManyVars() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/sameIconst1ManyVars.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/sameIconst1ManyVars.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("usedInMethodCall.kt") @TestMetadata("usedInMethodCall.kt")
public void testUsedInMethodCall() throws Exception { public void testUsedInMethodCall() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.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("usedInVarStore.kt") @TestMetadata("usedInVarStore.kt")
public void testUsedInVarStore() throws Exception { public void testUsedInVarStore() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.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.");
} }
} }
@@ -5741,13 +6131,25 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("simple.kt") @TestMetadata("simple.kt")
public void testSimple() throws Exception { public void testSimple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multiModule/simple.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multiModule/simple.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("suspendExtension.kt") @TestMetadata("suspendExtension.kt")
public void testSuspendExtension() throws Exception { public void testSuspendExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multiModule/suspendExtension.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/multiModule/suspendExtension.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.");
} }
} }
} }