Skip to content

Commit d8b5ad9

Browse files
committed
update tests
1 parent f16363e commit d8b5ad9

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
@@ -13,7 +13,7 @@
1313
// lldb-command:v I
1414
// lldb-check: ::I::[...] = -1
1515
// lldb-command:v --format=d C
16-
// lldb-check: ::C::[...] = 97
16+
// lldb-check: ::C::[...] = 97 U+0x00000061 U'a'
1717
// lldb-command:v --format=d I8
1818
// lldb-check: ::I8::[...] = 68
1919
// lldb-command:v I16

tests/debuginfo/borrowed-enum.rs

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

2525
// lldb-command:v *the_a_ref
26-
// lldb-check:(borrowed_enum::ABC) *the_a_ref = { TheA = { x = 0 y = 8970181431921507452 } }
26+
// lldb-check:(borrowed_enum::ABC) *the_a_ref = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
2727
// lldb-command:v *the_b_ref
28-
// lldb-check:(borrowed_enum::ABC) *the_b_ref = { TheB = { 0 = 0 1 = 286331153 2 = 286331153 } }
28+
// lldb-check:(borrowed_enum::ABC) *the_b_ref = TheB(0, 286331153, 286331153) { 0 = 0 1 = 286331153 2 = 286331153 }
2929
// lldb-command:v *univariant_ref
30-
// lldb-check:(borrowed_enum::Univariant) *univariant_ref = { TheOnlyCase = { 0 = 4820353753753434 } }
30+
// lldb-check:(borrowed_enum::Univariant) *univariant_ref = TheOnlyCase(4820353753753434) { 0 = 4820353753753434 }
3131

3232
#![allow(unused_variables)]
3333

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

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

3737
// lldb-command:v tuple_padding_at_end
38-
// lldb-check:[...] { 0 = { 0 = 1 1 = OneThousand } 1 = 2 }
38+
// lldb-check:[...] ((1, OneThousand), 2) { 0 = (1, OneThousand) { 0 = 1 1 = OneThousand } 1 = 2 }
3939

4040
// lldb-command:v tuple_different_enums
4141
// 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
@@ -27,7 +27,7 @@
2727

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

3232
// === CDB TESTS ===================================================================================
3333

tests/debuginfo/enum-thinlto.rs

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

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

2020
#![allow(unused_variables)]
2121

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

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

5959
// STACK BY REF
6060
// lldb-command:v *self
61-
// lldb-check:[...] { x = { 0 = 8888 1 = -8888 } }
61+
// lldb-check:[...] { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
6262
// lldb-command:v arg1
6363
// lldb-check:[...] -1
6464
// lldb-command:v arg2
@@ -67,7 +67,7 @@
6767

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

tests/debuginfo/issue-57822.rs

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

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

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

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

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

5959
// STACK BY REF
6060
// lldb-command:v *self
61-
// lldb-check:[...]Struct<(u32, i32)>) *self = { x = { 0 = 8888 1 = -8888 } }
61+
// lldb-check:[...]Struct<(u32, i32)>) *self = { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
6262
// lldb-command:v arg1
6363
// lldb-check:[...] -1
6464
// lldb-command:v arg2
@@ -67,7 +67,7 @@
6767

6868
// STACK BY VAL
6969
// lldb-command:v self
70-
// lldb-check:[...]Struct<(u32, i32)>) self = { x = { 0 = 8888 1 = -8888 } }
70+
// lldb-check:[...]Struct<(u32, i32)>) self = { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
7171
// lldb-command:v arg1
7272
// lldb-check:[...] -3
7373
// 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)