Skip to content

Commit 5ded980

Browse files
committed
Disable struct value printing in debug info tests
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.
1 parent ffcd809 commit 5ded980

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/test/debug-info/struct.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,12 @@
99
// except according to those terms.
1010

1111
// compile-flags:-Z extra-debug-info
12-
// debugger:break 31
12+
// debugger:break 26
1313
// debugger:run
14-
// debugger:print pair
15-
// check:$1 = {
16-
// check:x = 1,
17-
// check:y = 2
18-
// check:}
1914
// debugger:print pair.x
20-
// check:$2 = 1
15+
// check:$1 = 1
2116
// debugger:print pair.y
22-
// check:$3 = 2
17+
// check:$2 = 2
2318

2419
struct Pair {
2520
x: int,

src/test/debug-info/tuple.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// xfail-test
1112
// compile-flags:-Z extra-debug-info
1213
// debugger:break 23
1314
// debugger:run

0 commit comments

Comments
 (0)