Skip to content

Commit fdc6ca4

Browse files
committed
Auto merge of #47155 - nerd2:debuginfo_test_fix, r=alexcrichton
Restore working debuginfo tests by trimming comments from non-header directive lines I noticed when adding a debuginfo test that nothing I did caused the test to fail. Tracing back this seems to have been caused by 3e6c83d which broke parsing of the command/check lines, leaving all tests passing without any checking. This commit provides a basic (although still not very robust) restoration of tests and a should-fail test which checks the parser is running
2 parents 8d370ec + 0a24acd commit fdc6ca4

25 files changed

+70
-2
lines changed

src/test/debuginfo/basic-types-globals-metadata.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// min-lldb-version: 310
12+
// ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
1213

1314
// compile-flags:-g
1415
// gdb-command:run

src/test/debuginfo/basic-types-globals.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// its numerical value.
1616

1717
// min-lldb-version: 310
18+
// ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
1819

1920
// compile-flags:-g
2021
// gdb-command:run

src/test/debuginfo/basic-types-metadata.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// min-lldb-version: 310
12+
// ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
1213

1314
// compile-flags:-g
1415
// gdb-command:run

src/test/debuginfo/basic-types-mut-globals.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// its numerical value.
1616

1717
// min-lldb-version: 310
18+
// ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
1819

1920
// compile-flags:-g
2021

src/test/debuginfo/by-value-non-immediate-argument.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-tidy-linelength
12+
// ignore-test // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
1213
// min-lldb-version: 310
1314

1415
// compile-flags:-g

src/test/debuginfo/c-style-enum.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-aarch64
12+
// ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
1213
// min-lldb-version: 310
1314

1415
// compile-flags:-g

src/test/debuginfo/drop-locations.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// ignore-windows
1212
// ignore-android
13+
// ignore-test // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
1314
// min-lldb-version: 310
1415

1516
#![allow(unused)]

src/test/debuginfo/function-arg-initialization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-tidy-linelength
12-
12+
// ignore-test // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
1313
// min-lldb-version: 310
1414

1515
// This test case checks if function arguments already have the correct value

src/test/debuginfo/function-prologue-stepping-regular.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
// min-lldb-version: 310
1515
// ignore-gdb
16+
// ignore-test // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
1617
// compile-flags:-g
1718

1819
// lldb-command:breakpoint set --name immediate_args

src/test/debuginfo/lexical-scopes-in-block-expression.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// min-lldb-version: 310
12+
// ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
1213

1314
// compile-flags:-g
1415

0 commit comments

Comments
 (0)