Skip to content

Commit 1d2d783

Browse files
committed
update tests
1 parent 258fa71 commit 1d2d783

18 files changed

+45
-44
lines changed

tests/debuginfo/basic-types-globals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// lldb-command:v I
1313
// lldb-check: ::I::[...] = -1
1414
// lldb-command:v --format=d C
15-
// lldb-check: ::C::[...] = 97
15+
// lldb-check: ::C::[...] = 97 U+0x00000061 U'a'
1616
// lldb-command:v --format=d I8
1717
// lldb-check: ::I8::[...] = 68
1818
// lldb-command:v I16

tests/debuginfo/borrowed-enum.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
// lldb-command:run
2323

2424
// lldb-command:v *the_a_ref
25-
// lldb-check:(borrowed_enum::ABC) *the_a_ref = { TheA = { x = 0 y = 8970181431921507452 } }
25+
// lldb-check:(borrowed_enum::ABC) *the_a_ref = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
2626
// lldb-command:v *the_b_ref
27-
// lldb-check:(borrowed_enum::ABC) *the_b_ref = { TheB = { 0 = 0 1 = 286331153 2 = 286331153 } }
27+
// lldb-check:(borrowed_enum::ABC) *the_b_ref = TheB(0, 286331153, 286331153) { 0 = 0 1 = 286331153 2 = 286331153 }
2828
// lldb-command:v *univariant_ref
29-
// lldb-check:(borrowed_enum::Univariant) *univariant_ref = { TheOnlyCase = { 0 = 4820353753753434 } }
29+
// lldb-check:(borrowed_enum::Univariant) *univariant_ref = TheOnlyCase(4820353753753434) { 0 = 4820353753753434 }
3030

3131
#![allow(unused_variables)]
3232

tests/debuginfo/c-style-enum-in-composite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
// lldb-check:[...] { 0 = 0 1 = OneHundred }
3535

3636
// lldb-command:v tuple_padding_at_end
37-
// lldb-check:[...] { 0 = { 0 = 1 1 = OneThousand } 1 = 2 }
37+
// lldb-check:[...] ((1, OneThousand), 2) { 0 = (1, OneThousand) { 0 = 1 1 = OneThousand } 1 = 2 }
3838

3939
// lldb-command:v tuple_different_enums
4040
// lldb-check:[...] { 0 = OneThousand 1 = MountainView 2 = OneMillion 3 = Vienna }

tests/debuginfo/coroutine-objects.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// lldb-command:run
2828
// lldb-command:v b
29-
// lldb-check:(coroutine_objects::main::{coroutine_env#0}) b = { value = { _ref__a = 0x[...] } $discr$ = [...] }
29+
// lldb-check:(coroutine_objects::main::{coroutine_env#0}) b = 0{_ref__a:0x[...]} { _ref__a = 0x[...] }
3030

3131
// === CDB TESTS ===================================================================================
3232

tests/debuginfo/enum-thinlto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// lldb-command:run
1515

1616
// lldb-command:v *abc
17-
// lldb-check:(enum_thinlto::ABC) *abc = { value = { x = 0 y = 8970181431921507452 } $discr$ = 0 }
17+
// lldb-check:(enum_thinlto::ABC) *abc = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
1818

1919
#![allow(unused_variables)]
2020

tests/debuginfo/generic-method-on-generic-struct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
// STACK BY REF
5959
// lldb-command:v *self
60-
// lldb-check:[...] { x = { 0 = 8888 1 = -8888 } }
60+
// lldb-check:[...] { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
6161
// lldb-command:v arg1
6262
// lldb-check:[...] -1
6363
// lldb-command:v arg2
@@ -66,7 +66,7 @@
6666

6767
// STACK BY VAL
6868
// lldb-command:v self
69-
// lldb-check:[...] { x = { 0 = 8888 1 = -8888 } }
69+
// lldb-check:[...] { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
7070
// lldb-command:v arg1
7171
// lldb-check:[...] -3
7272
// lldb-command:v arg2

tests/debuginfo/issue-57822.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// lldb-check:(issue_57822::main::{closure_env#1}) g = { f = { x = 1 } }
2424

2525
// lldb-command:v b
26-
// lldb-check:(issue_57822::main::{coroutine_env#3}) b = { value = { a = { value = { y = 2 } $discr$ = '\x02' } } $discr$ = '\x02' }
26+
// lldb-check:(issue_57822::main::{coroutine_env#3}) b = 2{a:2{y:2}} { a = 2{y:2} { y = 2 } }
2727

2828
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
2929

tests/debuginfo/method-on-generic-struct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
// STACK BY REF
5959
// lldb-command:v *self
60-
// lldb-check:[...]Struct<(u32, i32)>) *self = { x = { 0 = 8888 1 = -8888 } }
60+
// lldb-check:[...]Struct<(u32, i32)>) *self = { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
6161
// lldb-command:v arg1
6262
// lldb-check:[...] -1
6363
// lldb-command:v arg2
@@ -66,7 +66,7 @@
6666

6767
// STACK BY VAL
6868
// lldb-command:v self
69-
// lldb-check:[...]Struct<(u32, i32)>) self = { x = { 0 = 8888 1 = -8888 } }
69+
// lldb-check:[...]Struct<(u32, i32)>) self = { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
7070
// lldb-command:v arg1
7171
// lldb-check:[...] -3
7272
// lldb-command:v arg2

tests/debuginfo/msvc-pretty-enums.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@ only-msvc
12
//@ min-lldb-version: 1800
23
//@ ignore-gdb
34
//@ compile-flags:-g

tests/debuginfo/option-like-enum.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,31 +40,31 @@
4040
// lldb-command:run
4141

4242
// lldb-command:v some
43-
// lldb-check:[...] Some(&0x[...])
43+
// lldb-check:[...] Some(0x[...]) { 0 = 0x[...] }
4444

4545
// lldb-command:v none
4646
// lldb-check:[...] None
4747

4848
// lldb-command:v full
49-
// lldb-check:[...] Full(454545, &0x[...], 9988)
49+
// lldb-check:[...] Full(454545, 0x[...], 9988) { 0 = 454545 1 = 0x[...] 2 = 9988 }
5050

5151
// lldb-command:v empty
5252
// lldb-check:[...] Empty
5353

5454
// lldb-command:v droid
55-
// lldb-check:[...] Droid { id: 675675, range: 10000001, internals: &0x[...] }
55+
// lldb-check:[...] Droid{id:675675, range:10000001, internals:0x[...]} { id = 675675 range = 10000001 internals = 0x[...] }
5656

5757
// lldb-command:v void_droid
5858
// lldb-check:[...] Void
5959

6060
// lldb-command:v some_str
61-
// lldb-check:[...] Some("abc")
61+
// lldb-check:[...] Some("abc") [...]
6262

6363
// lldb-command:v none_str
6464
// lldb-check:[...] None
6565

6666
// lldb-command:v nested_non_zero_yep
67-
// lldb-check:[...] Yep(10.5, NestedNonZeroField { a: 10, b: 20, c: &[...] })
67+
// lldb-check:[...] Yep(10.5, {a:10, b:20, c:[...]}) { 0 = 10.5 1 = { a = 10 b = 20 c = [...] } }
6868

6969
// lldb-command:v nested_non_zero_nope
7070
// lldb-check:[...] Nope

0 commit comments

Comments
 (0)