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:
许杰友 Jieyou Xu (Joe) 2024-10-12 09:41:42 +08:00
parent 01e2fff90c
commit 1fe079bd62

View File

@ -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