mirror of https://github.com/rust-lang/rust.git
Remap path refix in the panic message
Otherwise `error-pattern` on the test run stderr can incorrectly match if e.g. the paths in panic backtrace has a matching substring (like if we look for `bar` in the error pattern but username is `baron`).
This commit is contained in:
parent
01e2fff90c
commit
1fe079bd62
|
@ -5,6 +5,7 @@
|
|||
//@ revisions: foo bar
|
||||
//@ should-fail
|
||||
//@ needs-run-enabled
|
||||
//@ compile-flags: --remap-path-prefix={{src-base}}=remapped
|
||||
//@[foo] error-pattern:bar
|
||||
//@[bar] error-pattern:foo
|
||||
|
||||
|
|
Loading…
Reference in New Issue