Skip to content

Commit d8af4b3

Browse files
committed
add filter regexes to load-panic-backtraces test
1 parent 51c32f4 commit d8af4b3

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

src/test/ui/proc-macro/invalid-punct-ident-2.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> ""
1010
// normalize-stderr-test "note: compiler flags.*\n\n" -> ""
1111
// normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
12+
// normalize-stderr-test "query stack during panic:\n" -> ""
13+
// normalize-stderr-test "we're just showing a limited slice of the query stack\n" -> ""
14+
// normalize-stderr-test "end of query stack\n" -> ""
1215

1316
#[macro_use]
1417
extern crate invalid_punct_ident;

src/test/ui/proc-macro/invalid-punct-ident-2.stderr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
query stack during panic:
2-
we're just showing a limited slice of the query stack
3-
end of query stack
41
error: proc macro panicked
5-
--> $DIR/invalid-punct-ident-2.rs:16:1
2+
--> $DIR/invalid-punct-ident-2.rs:19:1
63
|
74
LL | invalid_ident!();
85
| ^^^^^^^^^^^^^^^^^

src/test/ui/proc-macro/invalid-punct-ident-3.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> ""
1010
// normalize-stderr-test "note: compiler flags.*\n\n" -> ""
1111
// normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
12+
// normalize-stderr-test "query stack during panic:\n" -> ""
13+
// normalize-stderr-test "we're just showing a limited slice of the query stack\n" -> ""
14+
// normalize-stderr-test "end of query stack\n" -> ""
1215

1316
#[macro_use]
1417
extern crate invalid_punct_ident;

src/test/ui/proc-macro/invalid-punct-ident-3.stderr

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
query stack during panic:
2-
we're just showing a limited slice of the query stack
3-
end of query stack
41
error: proc macro panicked
5-
--> $DIR/invalid-punct-ident-3.rs:16:1
2+
--> $DIR/invalid-punct-ident-3.rs:19:1
63
|
74
LL | invalid_raw_ident!();
85
| ^^^^^^^^^^^^^^^^^^^^^

src/test/ui/proc-macro/load-panic-backtrace.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
// normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> ""
1111
// normalize-stderr-test "note: compiler flags.*\n\n" -> ""
1212
// normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
13+
// normalize-stderr-test "query stack during panic:\n" -> ""
14+
// normalize-stderr-test "we're just showing a limited slice of the query stack\n" -> ""
15+
// normalize-stderr-test "end of query stack\n" -> ""
1316

1417
#[macro_use]
1518
extern crate test_macros;

src/test/ui/proc-macro/load-panic-backtrace.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
at 'panic-derive', $DIR/auxiliary/test-macros.rs:43:5
22
error: proc-macro derive panicked
3-
--> $DIR/load-panic-backtrace.rs:17:10
3+
--> $DIR/load-panic-backtrace.rs:20:10
44
|
55
LL | #[derive(Panic)]
66
| ^^^^^

0 commit comments

Comments
 (0)