Native: add debugger test for inspecting string variables

We just had no tests checking that debugger can properly show values
of string-typed variables. This commit adds such a test.
This commit is contained in:
Svyatoslav Scherbina
2023-08-23 11:38:07 +02:00
committed by Space Team
parent 4774912fdc
commit 0a2348e595
3 changed files with 22 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// KIND: STANDALONE_LLDB
// LLDB_TRACE: canInspectStrings.txt
fun main(args: Array<String>) {
val a = "string literal"
val b = buildString {
append("dynamic ")
append("string")
}
return
}
@@ -0,0 +1,6 @@
> b main.kt:9
> r
> fr var
(ObjHeader *) a = string literal
(ObjHeader *) b = dynamic string
> q
@@ -57,6 +57,12 @@ public class LldbTestGenerated extends AbstractNativeBlackBoxTest {
runTest("native/native.tests/testData/lldb/canInspectClasses.kt");
}
@Test
@TestMetadata("canInspectStrings.kt")
public void testCanInspectStrings() throws Exception {
runTest("native/native.tests/testData/lldb/canInspectStrings.kt");
}
@Test
@TestMetadata("canInspectValuesOfPrimitiveTypes.kt")
public void testCanInspectValuesOfPrimitiveTypes() throws Exception {