Skip to content

Commit

Permalink
change test to be specific for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Mar 25, 2016
1 parent 726ba66 commit 874574d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/run-pass/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 874574d

Please sign in to comment.