test: Fix a test on MSVC
Apparently MSVC now has namespaces in backtraces!
This commit is contained in:
parent
f38762a881
commit
52430727cd
1 changed files with 1 additions and 13 deletions
|
|
@ -46,19 +46,7 @@ fn template(me: &str) -> Command {
|
|||
}
|
||||
|
||||
fn expected(fn_name: &str) -> String {
|
||||
// FIXME(#32481)
|
||||
//
|
||||
// On windows, we read the function name from debuginfo using some
|
||||
// system APIs. For whatever reason, these APIs seem to use the
|
||||
// "name" field, which is only the "relative" name, not the full
|
||||
// name with namespace info, so we just see `foo` and not
|
||||
// `backtrace::foo` as we see on linux (which uses the linkage
|
||||
// name).
|
||||
if cfg!(windows) && cfg!(target_env = "msvc") {
|
||||
format!(" - {}", fn_name)
|
||||
} else {
|
||||
format!(" - backtrace::{}", fn_name)
|
||||
}
|
||||
format!(" - backtrace::{}", fn_name)
|
||||
}
|
||||
|
||||
fn runtest(me: &str) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue