[JVM+IR] Unify new debugger tests expectations
This commit unifies the expectation format between the stepping and LVT tests in the new debugging test harness. Furthermore, it introduces a compression of runs of locations without linenumbers. These default to showing as bytecode offsets from previous line number, which overspecifies the tests: the bytecodes chosen should not be constrained by a debugging step test.
This commit is contained in:
committed by
max-kammerer
parent
e19ecdfb3d
commit
27fb46712a
@@ -7,14 +7,13 @@ fun foo(a: A, block: (A) -> String): String = block(a)
|
||||
fun box() {
|
||||
foo(A("O", 123)) { (x, y) -> x + y }
|
||||
}
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
|
||||
// LOCAL VARIABLES
|
||||
// TestKt:8:
|
||||
// A:3: x:java.lang.String="O":java.lang.String, y:int=123:int
|
||||
// TestKt:8:
|
||||
// TestKt:5: a:A=A, block:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// TestKt$box$1:8: $dstr$x$y:A=A
|
||||
// TestKt$box$1.invoke(java.lang.Object)+8:
|
||||
// TestKt:5: a:A=A, block:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// TestKt:8:
|
||||
// TestKt:9:
|
||||
// test.kt:8 box:
|
||||
// test.kt:3 <init>: x:java.lang.String="O":java.lang.String, y:int=123:int
|
||||
// test.kt:8 box:
|
||||
// test.kt:5 foo: a:A=A, block:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// test.kt:8 invoke: $dstr$x$y:A=A
|
||||
// test.kt:5 foo: a:A=A, block:kotlin.jvm.functions.Function1=TestKt$box$1
|
||||
// test.kt:8 box:
|
||||
// test.kt:9 box:
|
||||
Reference in New Issue
Block a user