Skip to content

Commit

Permalink
Auto merge of #5859 - jeizsm:master, r=alexcrichton
Browse files Browse the repository at this point in the history
check target env in test when use targets

Hello. It also should check for target vendor but it's still unstable for some reason rust-lang/rust#29718
  • Loading branch information
bors committed Aug 3, 2018
2 parents 5badfb1 + b686606 commit 67c4796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testsuite/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/rustdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
Expand Down

0 comments on commit 67c4796

Please sign in to comment.