Skip to content

Commit

Permalink
Auto merge of #1613 - RalfJung:test-normalize, r=RalfJung
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Oct 31, 2020
2 parents e4840ef + e7246be commit 9a2cfbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/run-pass/backtrace-api.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// normalize-stderr-test ".*/(rust|checkout)/library/" -> "RUSTLIB/"
// normalize-stderr-test ".*/(rust[^/]*|checkout)/library/" -> "RUSTLIB/"
// normalize-stderr-test "RUSTLIB/(.*):\d+:\d+ "-> "RUSTLIB/$1:LL:COL "
// normalize-stderr-test "::<.*>" -> ""

Expand Down
2 changes: 1 addition & 1 deletion tests/run-pass/backtrace-std.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// normalize-stderr-test "at .*/(rust|checkout)/library/" -> "at RUSTLIB/"
// normalize-stderr-test "at .*/(rust[^/]*|checkout)/library/" -> "at RUSTLIB/"
// normalize-stderr-test "RUSTLIB/(.*):\d+"-> "RUSTLIB/$1:LL"
// normalize-stderr-test "::<.*>" -> ""
// compile-flags: -Zmiri-disable-isolation
Expand Down
2 changes: 1 addition & 1 deletion tests/run-pass/panic/panic1.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// rustc-env: RUST_BACKTRACE=1
// compile-flags: -Zmiri-disable-isolation
// normalize-stderr-test "at .*/(rust|checkout)/library/.*" -> "at RUSTLIB/$$FILE:LL:COL"
// normalize-stderr-test "at .*/(rust[^/]*|checkout)/library/.*" -> "at RUSTLIB/$$FILE:LL:COL"
// normalize-stderr-test "::<.*>" -> ""


Expand Down

0 comments on commit 9a2cfbf

Please sign in to comment.