Skip to content

Commit

Permalink
Fix debuginfo tests(?).
Browse files Browse the repository at this point in the history
  • Loading branch information
zachs18 committed Jan 19, 2024
1 parent b93f246 commit 098a7ed
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/debuginfo/embedded-visualizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
// cdb-command: dx person
// cdb-check:person : "Person A" is 10 years old. [Type: dependency_with_embedded_visualizers::Person]
// cdb-check: [<Raw View>] [Type: dependency_with_embedded_visualizers::Person]
// cdb-check: [name] : "Person A" [Type: alloc::string::String]
// cdb-check: [name] : "Person A" [Type: alloc::string::string::String<alloc::alloc::Global>]
// cdb-check: [age] : 10 [Type: int]

// === GDB TESTS ===================================================================================
Expand Down
4 changes: 2 additions & 2 deletions tests/debuginfo/marker-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// cdb-check: [<Raw View>] [Type: core::mem::manually_drop::ManuallyDrop<i32>]

// cdb-command: dx pin
// cdb-check:pin : Pin(0x[...]: "this") [Type: core::pin::Pin<ref_mut$<alloc::string::String> >]
// cdb-check: [<Raw View>] [Type: core::pin::Pin<ref_mut$<alloc::string::String> >]
// cdb-check:pin : Pin(0x[...]: "this") [Type: core::pin::Pin<ref_mut$<alloc::string::string::String<alloc::alloc::Global> > >]
// cdb-check: [<Raw View>] [Type: core::pin::Pin<ref_mut$<alloc::string::string::String<alloc::alloc::Global> > >]
// cdb-check: [len] : 0x4 [Type: unsigned [...]]
// cdb-check: [capacity] : 0x4 [Type: unsigned [...]]
// cdb-check: [chars] : "this"
Expand Down
4 changes: 2 additions & 2 deletions tests/debuginfo/msvc-pretty-enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
// cdb-check:j : High (0x10) [Type: msvc_pretty_enums::CStyleEnum]

// cdb-command: dx k
// cdb-check:k : Some [Type: enum2$<core::option::Option<alloc::string::String> >]
// cdb-check: [+0x000] __0 : "IAMA optional string!" [Type: alloc::string::String]
// cdb-check:k : Some [Type: enum2$<core::option::Option<alloc::string::string::String<alloc::alloc::Global> > >]
// cdb-check: [+0x000] __0 : "IAMA optional string!" [Type: alloc::string::string::String<alloc::alloc::Global>]

// cdb-command: dx l
// cdb-check:l : Ok [Type: enum2$<core::result::Result<u32,enum2$<msvc_pretty_enums::Empty> > >]
Expand Down
6 changes: 3 additions & 3 deletions tests/debuginfo/pretty-std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@
// cdb-check: [<Raw View>] [Type: enum2$<core::option::Option<i64> >]

// cdb-command: dx some_string
// cdb-check:some_string : Some [Type: enum2$<core::option::Option<alloc::string::String> >]
// cdb-check: [<Raw View>] [Type: enum2$<core::option::Option<alloc::string::String> >]
// cdb-check: [+0x000] __0 : "IAMA optional string!" [Type: alloc::string::String]
// cdb-check:some_string : Some [Type: enum2$<core::option::Option<alloc::string::string::String<alloc::alloc::Global> > >]
// cdb-check: [<Raw View>] [Type: enum2$<core::option::Option<alloc::string::string::String<alloc::alloc::Global> > >]
// cdb-check: [+0x000] __0 : "IAMA optional string!" [Type: alloc::string::string::String<alloc::alloc::Global>]

// cdb-command: dx linkedlist
// cdb-check:linkedlist : { len=0x2 } [Type: alloc::collections::linked_list::LinkedList<i32,alloc::alloc::Global>]
Expand Down

0 comments on commit 098a7ed

Please sign in to comment.