Skip to content

Commit ee6756b

Browse files
committed
fixup! Add normalization for thread IDs in panic messages
1 parent 8eeabd5 commit ee6756b

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

tests/run-make/libtest-json/rmake.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ fn run_tests(extra_args: &[&str], expected_file: &str) {
3838
.expected_file(expected_file)
3939
.actual_text("stdout", test_stdout)
4040
.normalize(r#"(?<prefix>"exec_time": )[0-9.]+"#, r#"${prefix}"$$EXEC_TIME""#)
41-
.normalize(
42-
r"thread '(?P<name>.*?)' \(\d+\) panicked",
43-
"thread '$name' ($$TID) panicked",
44-
)
41+
.normalize(r"thread '(?P<name>.*?)' \(\d+\) panicked", "thread '$name' ($$TID) panicked")
4542
.run();
4643
}

tests/run-make/libtest-junit/rmake.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ fn run_tests(extra_args: &[&str], expected_file: &str) {
2727
.expected_file(expected_file)
2828
.actual_text("stdout", test_stdout)
2929
.normalize(r#"\btime="[0-9.]+""#, r#"time="$$TIME""#)
30-
.normalize(
31-
r"thread '(?P<name>.*?)' \(\d+\) panicked",
32-
"thread '$name' ($$TID) panicked",
33-
)
30+
.normalize(r"thread '(?P<name>.*?)' \(\d+\) panicked", "thread '$name' ($$TID) panicked")
3431
.run();
3532
}

0 commit comments

Comments
 (0)