change test to be specific for msvc

This commit is contained in:
Niko Matsakis 2016-03-25 17:33:17 -04:00
parent 726ba6630d
commit 874574d548
1 changed files with 1 additions and 2 deletions

View File

@ -60,8 +60,7 @@ fn expected(fn_name: &str) -> String {
// 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) {
if cfg!(windows) && cfg!(target_env = "msvc") {
format!(" - {}", fn_name)
} else {
format!(" - backtrace::{}", fn_name)