diff --git a/tests/test_cargo_compile.rs b/tests/test_cargo_compile.rs index b8dbb4bd1ef..bff29e02d05 100644 --- a/tests/test_cargo_compile.rs +++ b/tests/test_cargo_compile.rs @@ -1357,7 +1357,7 @@ Caused by: ")); }); -#[cfg(target_os = "linux")] +#[cfg(all(any(target_arch = "x86", target_arch = "x86_64"), target_os = "linux"))] test!(cargo_platform_specific_dependency { let p = project("foo") .file("Cargo.toml", r#" @@ -1398,7 +1398,7 @@ test!(cargo_platform_specific_dependency { execs().with_stdout("test passed\n")); }); -#[cfg(not(target_os = "linux"))] +#[cfg(not(all(any(target_arch = "x86", target_arch = "x86_64"), target_os = "linux")))] test!(cargo_platform_specific_dependency { let p = project("foo") .file("Cargo.toml", r#"