Skip to content

Commit

Permalink
Fix cfg of platform-specific tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akosthekiss committed Jan 5, 2015
1 parent 4657875 commit c8f4ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cargo_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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#"
Expand Down Expand Up @@ -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#"
Expand Down

0 comments on commit c8f4ecc

Please sign in to comment.