Move debugger test data to the new location

This commit is contained in:
Yan Zhulanow
2019-09-27 00:13:53 +09:00
parent b4cc5703de
commit d8d81c51d7
1423 changed files with 0 additions and 0 deletions
@@ -0,0 +1,40 @@
package sofSuspendableCallInFun
import forTests.builder
import forTests.WaitFinish
import kotlin.coroutines.Continuation
import kotlin.coroutines.*
private fun foo(a: Any) {}
val waiter = WaitFinish()
fun main(args: Array<String>) {
builder {
inFun()
}
foo("Main end")
waiter.waitEnd()
}
suspend fun inFun() {
//Breakpoint!
run()
foo("End")
}
suspend fun run() {
//Breakpoint!
foo("This breakpoint should be skipped")
suspendCoroutine { cont: Continuation<Unit> ->
Thread {
Thread.sleep(10)
cont.resume(Unit)
waiter.finish()
}.start()
}
}
// STEP_OVER_FORCE: 2
@@ -0,0 +1,10 @@
LineBreakpoint created at sofSuspendableCallInFun.kt:23
LineBreakpoint created at sofSuspendableCallInFun.kt:29
Run Java
Connected to the target VM
sofSuspendableCallInFun.kt:23
sofSuspendableCallInFun.kt:21
sofSuspendableCallInFun.kt:24
Disconnected from the target VM
Process finished with exit code 0