From c8f4ecc4909f94092e3dd8a30ff56740222ec256 Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Mon, 5 Jan 2015 15:53:22 +0000 Subject: [PATCH] Fix cfg of platform-specific tests --- tests/test_cargo_compile.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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#"