test: Fix a test on MSVC

Apparently MSVC now has namespaces in backtraces!
This commit is contained in:
Alex Crichton 2016-07-26 15:09:39 -07:00 committed by Jan-Erik Rediger
parent f38762a881
commit 52430727cd

View file

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