Skip to content

Commit 67c4796

Browse files
committed
Auto merge of #5859 - jeizsm:master, r=alexcrichton
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
2 parents 5badfb1 + b686606 commit 67c4796

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/testsuite/cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ fn any_ok() {
410410

411411
// https://github.com/rust-lang/cargo/issues/5313
412412
#[test]
413-
#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
413+
#[cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"))]
414414
fn cfg_looks_at_rustflags_for_target() {
415415
let p = project()
416416
.file(

tests/testsuite/rustdoc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn features() {
181181
}
182182

183183
#[test]
184-
#[cfg(all(target_arch = "x86_64", target_os = "linux"))]
184+
#[cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "gnu"))]
185185
fn rustdoc_target() {
186186
let p = project()
187187
.file("src/lib.rs", "")

0 commit comments

Comments
 (0)