[JVM] Port remaining line number tests to stepping infrastructure.
These line number tests only tested that a set of line numbers where present in the java bytecode. Not that they would be hit in the right order by the debugger. Moving them to stepping tests fixes that. This exposes a couple of issues (in particular around try-catch-finally) that should be fixed. A number of tests are marked as failing now. Will investigate and work on fixes next.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
// FILE: test.kt
|
||||
|
||||
fun box(){
|
||||
test() +
|
||||
fail()
|
||||
|
||||
fail() +
|
||||
test()
|
||||
}
|
||||
|
||||
inline fun test() : String {
|
||||
return "123"
|
||||
}
|
||||
|
||||
fun fail() : String {
|
||||
return "fail"
|
||||
}
|
||||
|
||||
// IGNORE_BACKEND: JVM
|
||||
|
||||
// The JVM backend does not go back to line 4 and 7 for the
|
||||
// addition. Instead it treats the addition of the evaluated
|
||||
// arguments as being on line 5 and 8. That seems incorrect
|
||||
// and the JVM_IR stepping is more correct.
|
||||
|
||||
// LINENUMBERS
|
||||
// test.kt:4 box
|
||||
// test.kt:12 box
|
||||
// test.kt:5 box
|
||||
// test.kt:16 fail
|
||||
// test.kt:4 box
|
||||
// test.kt:7 box
|
||||
// test.kt:16 fail
|
||||
// test.kt:8 box
|
||||
// test.kt:12 box
|
||||
// test.kt:7 box
|
||||
// test.kt:9 box
|
||||
Reference in New Issue
Block a user