Skip to content

Commit

Permalink
Update debuginfo tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmana committed May 18, 2014
1 parent 28243a5 commit be79edb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
6 changes: 4 additions & 2 deletions src/test/debuginfo/option-like-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
// gdb-command:finish

// gdb-command:print some
// gdb-check:$1 = {0x12345678}
// gdb-check:$1 = (u32 *) 0x12345678

// gdb-command:print none
// gdb-check:$2 = {0x0}
// gdb-check:$2 = (u32 *) 0x0

// gdb-command:print full
// gdb-check:$3 = {454545, 0x87654321, 9988}
Expand All @@ -41,6 +41,8 @@
// contains a non-nullable pointer, then this value is used as the discriminator.
// The test cases in this file make sure that something readable is generated for
// this kind of types.
// If the non-empty variant contains a single non-nullable pointer than the whole
// item is represented as just a pointer and not wrapped in a struct.
// Unfortunately (for these test cases) the content of the non-discriminant fields
// in the null-case is not defined. So we just read the discriminator field in
// this case (by casting the value to a memory-equivalent struct).
Expand Down
24 changes: 12 additions & 12 deletions src/test/debuginfo/recursive-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,53 +20,53 @@

// gdb-command:print stack_unique.value
// gdb-check:$1 = 0
// gdb-command:print stack_unique.next.val->value
// gdb-command:print stack_unique.next->value
// gdb-check:$2 = 1

// gdb-command:print unique_unique->value
// gdb-check:$3 = 2
// gdb-command:print unique_unique->next.val->value
// gdb-command:print unique_unique->next->value
// gdb-check:$4 = 3

// gdb-command:print box_unique->val.value
// gdb-check:$5 = 4
// gdb-command:print box_unique->val.next.val->value
// gdb-command:print box_unique->val.next->value
// gdb-check:$6 = 5

// gdb-command:print vec_unique[0].value
// gdb-check:$7 = 6.5
// gdb-command:print vec_unique[0].next.val->value
// gdb-command:print vec_unique[0].next->value
// gdb-check:$8 = 7.5

// gdb-command:print borrowed_unique->value
// gdb-check:$9 = 8.5
// gdb-command:print borrowed_unique->next.val->value
// gdb-command:print borrowed_unique->next->value
// gdb-check:$10 = 9.5

// MANAGED
// gdb-command:print stack_managed.value
// gdb-check:$11 = 10
// gdb-command:print stack_managed.next.val->val.value
// gdb-command:print stack_managed.next.val->value
// gdb-check:$12 = 11

// gdb-command:print unique_managed->value
// gdb-check:$13 = 12
// gdb-command:print unique_managed->next.val->val.value
// gdb-command:print unique_managed->next.val->value
// gdb-check:$14 = 13

// gdb-command:print box_managed->val.value
// gdb-command:print box_managed.val->value
// gdb-check:$15 = 14
// gdb-command:print box_managed->val.next.val->val.value
// gdb-command:print box_managed->val->next.val->value
// gdb-check:$16 = 15

// gdb-command:print vec_managed[0].value
// gdb-check:$17 = 16.5
// gdb-command:print vec_managed[0].next.val->val.value
// gdb-command:print vec_managed[0].next.val->value
// gdb-check:$18 = 17.5

// gdb-command:print borrowed_managed->value
// gdb-check:$19 = 18.5
// gdb-command:print borrowed_managed->next.val->val.value
// gdb-command:print borrowed_managed->next.val->value
// gdb-check:$20 = 19.5

// LONG CYCLE
Expand Down Expand Up @@ -97,7 +97,7 @@
// gdb-command:print (*****long_cycle_w_anonymous_types).value
// gdb-check:$31 = 30

// gdb-command:print (*****((*****long_cycle_w_anonymous_types).next.val)).value
// gdb-command:print (*****((*****long_cycle_w_anonymous_types).next)).value
// gdb-check:$32 = 31

// gdb-command:continue
Expand Down

5 comments on commit be79edb

@bors
Copy link
Contributor

@bors bors commented on be79edb May 18, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at luqmana@be79edb

@bors
Copy link
Contributor

@bors bors commented on be79edb May 18, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging luqmana/rust/option-ffi = be79edb into auto

@bors
Copy link
Contributor

@bors bors commented on be79edb May 18, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

luqmana/rust/option-ffi = be79edb merged ok, testing candidate = bf8648d

@bors
Copy link
Contributor

@bors bors commented on be79edb May 18, 2014

@bors
Copy link
Contributor

@bors bors commented on be79edb May 18, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = bf8648d

Please sign in to comment.