Skip to content

Commit 9a2cfbf

Browse files
committed
Auto merge of #1613 - RalfJung:test-normalize, r=RalfJung
backtrace tests: support more ways of checking out Rust locally Tests failed when using a local build as my folders are called `rustc`, `rustc.2`, ... Expand the regex to also support that naming scheme.
2 parents e4840ef + e7246be commit 9a2cfbf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/run-pass/backtrace-api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// normalize-stderr-test ".*/(rust|checkout)/library/" -> "RUSTLIB/"
1+
// normalize-stderr-test ".*/(rust[^/]*|checkout)/library/" -> "RUSTLIB/"
22
// normalize-stderr-test "RUSTLIB/(.*):\d+:\d+ "-> "RUSTLIB/$1:LL:COL "
33
// normalize-stderr-test "::<.*>" -> ""
44

tests/run-pass/backtrace-std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// normalize-stderr-test "at .*/(rust|checkout)/library/" -> "at RUSTLIB/"
1+
// normalize-stderr-test "at .*/(rust[^/]*|checkout)/library/" -> "at RUSTLIB/"
22
// normalize-stderr-test "RUSTLIB/(.*):\d+"-> "RUSTLIB/$1:LL"
33
// normalize-stderr-test "::<.*>" -> ""
44
// compile-flags: -Zmiri-disable-isolation

tests/run-pass/panic/panic1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// rustc-env: RUST_BACKTRACE=1
22
// compile-flags: -Zmiri-disable-isolation
3-
// normalize-stderr-test "at .*/(rust|checkout)/library/.*" -> "at RUSTLIB/$$FILE:LL:COL"
3+
// normalize-stderr-test "at .*/(rust[^/]*|checkout)/library/.*" -> "at RUSTLIB/$$FILE:LL:COL"
44
// normalize-stderr-test "::<.*>" -> ""
55

66

0 commit comments

Comments
 (0)