Skip to content

Commit

Permalink
Disable struct value printing in debug info tests
Browse files Browse the repository at this point in the history
This is due to the way different versions of gdb print out structs: older versions have them always spread out with fields on different lines, while newer versions will compactly print them on one line. This makes it hard for the output checker to verify the expected output.
  • Loading branch information
bleibig authored and brson committed Mar 11, 2013
1 parent c978025 commit c913eff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/test/debug-info/struct.rs
Expand Up @@ -9,17 +9,12 @@
// except according to those terms.

// compile-flags:-Z extra-debug-info
// debugger:break 31
// debugger:break 26
// debugger:run
// debugger:print pair
// check:$1 = {
// check:x = 1,
// check:y = 2
// check:}
// debugger:print pair.x
// check:$2 = 1
// check:$1 = 1
// debugger:print pair.y
// check:$3 = 2
// check:$2 = 2

struct Pair {
x: int,
Expand Down
1 change: 1 addition & 0 deletions src/test/debug-info/tuple.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// xfail-test
// compile-flags:-Z extra-debug-info
// debugger:break 23
// debugger:run
Expand Down

0 comments on commit c913eff

Please sign in to comment.