Generate probeCoroutineSuspended call in suspendCoroutineUninterceptedOrReturn

#KT-25508: Fixed
This commit is contained in:
Ilmir Usmanov
2018-07-18 22:19:12 +03:00
parent 76c651421b
commit 0ed5ec868c
3 changed files with 68 additions and 14 deletions
@@ -1102,6 +1102,24 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
runTest("compiler/testData/codegen/bytecodeText/coroutines/varValueConflictsWithTable_1_2.kt");
}
@TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/debug")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class Debug extends AbstractBytecodeTextTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
}
public void testAllFilesPresentInDebug() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/bytecodeText/coroutines/debug"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("probeCoroutineSuspended.kt")
public void testProbeCoroutineSuspended() throws Exception {
runTest("compiler/testData/codegen/bytecodeText/coroutines/debug/probeCoroutineSuspended.kt");
}
}
@TestMetadata("compiler/testData/codegen/bytecodeText/coroutines/destructuringInLambda")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)