Debugger: Add test for KT-15652

This commit is contained in:
Yan Zhulanow
2020-02-05 17:31:30 +09:00
parent dd33640238
commit 6f425ee951
3 changed files with 29 additions and 0 deletions
@@ -462,6 +462,11 @@ public class KotlinSteppingTestGenerated extends AbstractKotlinSteppingTest {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/inlineInObject.kt");
}
@TestMetadata("kt15652.kt")
public void testKt15652() throws Exception {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/kt15652.kt");
}
@TestMetadata("kt24343.kt")
public void testKt24343() throws Exception {
runTest("idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/kt24343.kt");
@@ -0,0 +1,14 @@
package test
fun main() {
runBlock {
//Breakpoint!
throw Exception()
}
}
inline fun runBlock(block: () -> Unit) {
block()
}
// STEP_OVER: 4
@@ -0,0 +1,10 @@
LineBreakpoint created at kt15652.kt:6
Run Java
Connected to the target VM
kt15652.kt:6
Disconnected from the target VM
Process finished with exit code 1
Exception in thread "main" java.lang.Exception
at test.Kt15652Kt.main(kt15652.kt:6)
at test.Kt15652Kt.main(kt15652.kt)