mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Mark cachelock tests that rely on interprocess blocking behaviour as unsupported on AIX. (#15734)
This PR marks several tests within cache_lock.rs as unsupported on the AIX platform. The tests relies on flock() behaviour that is not supported on AIX.
This commit is contained in:
commit
8f80388a78
@ -112,6 +112,10 @@ fn multiple_shared() {
|
|||||||
a_b_nested(CacheLockMode::Shared, CacheLockMode::Shared);
|
a_b_nested(CacheLockMode::Shared, CacheLockMode::Shared);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(
|
||||||
|
target_os = "aix",
|
||||||
|
ignore = "Test fails on AIX due to unsupported flock behaviour"
|
||||||
|
)]
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn multiple_shared_separate() {
|
fn multiple_shared_separate() {
|
||||||
// Test that two independent shared locks are safe to acquire at the same time.
|
// Test that two independent shared locks are safe to acquire at the same time.
|
||||||
@ -213,6 +217,10 @@ fn readonly() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(
|
||||||
|
target_os = "aix",
|
||||||
|
ignore = "Test fails on AIX due to unsupported flock behaviour"
|
||||||
|
)]
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn download_then_shared_separate() {
|
fn download_then_shared_separate() {
|
||||||
a_then_b_separate_not_blocked(
|
a_then_b_separate_not_blocked(
|
||||||
@ -222,6 +230,10 @@ fn download_then_shared_separate() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(
|
||||||
|
target_os = "aix",
|
||||||
|
ignore = "Test fails on AIX due to unsupported flock behaviour"
|
||||||
|
)]
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn shared_then_download_separate() {
|
fn shared_then_download_separate() {
|
||||||
a_then_b_separate_not_blocked(
|
a_then_b_separate_not_blocked(
|
||||||
@ -231,6 +243,10 @@ fn shared_then_download_separate() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(
|
||||||
|
target_os = "aix",
|
||||||
|
ignore = "Test fails on AIX due to unsupported flock behaviour"
|
||||||
|
)]
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn multiple_download_separate() {
|
fn multiple_download_separate() {
|
||||||
// Test that with two independent download locks, the second blocks until
|
// Test that with two independent download locks, the second blocks until
|
||||||
@ -241,6 +257,10 @@ fn multiple_download_separate() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(
|
||||||
|
target_os = "aix",
|
||||||
|
ignore = "Test fails on AIX due to unsupported flock behaviour"
|
||||||
|
)]
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn multiple_mutate_separate() {
|
fn multiple_mutate_separate() {
|
||||||
// Test that with two independent mutate locks, the second blocks until
|
// Test that with two independent mutate locks, the second blocks until
|
||||||
@ -251,11 +271,19 @@ fn multiple_mutate_separate() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(
|
||||||
|
target_os = "aix",
|
||||||
|
ignore = "Test fails on AIX due to unsupported flock behaviour"
|
||||||
|
)]
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn shared_then_mutate_separate() {
|
fn shared_then_mutate_separate() {
|
||||||
a_then_b_separate_blocked(CacheLockMode::Shared, CacheLockMode::MutateExclusive);
|
a_then_b_separate_blocked(CacheLockMode::Shared, CacheLockMode::MutateExclusive);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(
|
||||||
|
target_os = "aix",
|
||||||
|
ignore = "Test fails on AIX due to unsupported flock behaviour"
|
||||||
|
)]
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn download_then_mutate_separate() {
|
fn download_then_mutate_separate() {
|
||||||
a_then_b_separate_blocked(
|
a_then_b_separate_blocked(
|
||||||
@ -264,6 +292,10 @@ fn download_then_mutate_separate() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(
|
||||||
|
target_os = "aix",
|
||||||
|
ignore = "Test fails on AIX due to unsupported flock behaviour"
|
||||||
|
)]
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn mutate_then_download_separate() {
|
fn mutate_then_download_separate() {
|
||||||
a_then_b_separate_blocked(
|
a_then_b_separate_blocked(
|
||||||
@ -272,6 +304,10 @@ fn mutate_then_download_separate() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(
|
||||||
|
target_os = "aix",
|
||||||
|
ignore = "Test fails on AIX due to unsupported flock behaviour"
|
||||||
|
)]
|
||||||
#[cargo_test]
|
#[cargo_test]
|
||||||
fn mutate_then_shared_separate() {
|
fn mutate_then_shared_separate() {
|
||||||
a_then_b_separate_blocked(CacheLockMode::MutateExclusive, CacheLockMode::Shared);
|
a_then_b_separate_blocked(CacheLockMode::MutateExclusive, CacheLockMode::Shared);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user