From 874574d5487d5efdf7401c3e9f318921d6dfd369 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 25 Mar 2016 17:33:17 -0400 Subject: [PATCH] change test to be specific for msvc --- src/test/run-pass/backtrace.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/run-pass/backtrace.rs b/src/test/run-pass/backtrace.rs index 75f057e1e1d8f..36cac8f50a87c 100644 --- a/src/test/run-pass/backtrace.rs +++ b/src/test/run-pass/backtrace.rs @@ -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)