From b686606362bb3f4e3d1970a1223ffd8906dd8a87 Mon Sep 17 00:00:00 2001 From: Marat Safin Date: Fri, 3 Aug 2018 07:39:34 +0300 Subject: [PATCH] check target env in test when use targets --- tests/testsuite/cfg.rs | 2 +- tests/testsuite/rustdoc.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testsuite/cfg.rs b/tests/testsuite/cfg.rs index 190150f46e4..7c490884fb3 100644 --- a/tests/testsuite/cfg.rs +++ b/tests/testsuite/cfg.rs @@ -410,7 +410,7 @@ fn any_ok() { // https://github.com/rust-lang/cargo/issues/5313 #[test] -#[cfg(all(target_arch = "x86_64", target_os = "linux"))] +#[cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"))] fn cfg_looks_at_rustflags_for_target() { let p = project() .file( diff --git a/tests/testsuite/rustdoc.rs b/tests/testsuite/rustdoc.rs index 0ddcbc254b1..987d82fba74 100644 --- a/tests/testsuite/rustdoc.rs +++ b/tests/testsuite/rustdoc.rs @@ -181,7 +181,7 @@ fn features() { } #[test] -#[cfg(all(target_arch = "x86_64", target_os = "linux"))] +#[cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"))] fn rustdoc_target() { let p = project() .file("src/lib.rs", "")