Skip to content

Commit 4d141e8

Browse files
Uyiosa IyekekpolorUyiosa Iyekekpolor
authored andcommitted
mark cachelock tests that rely on interprocess blocking behaviour as unsuported on AIX
1 parent 0322bdd commit 4d141e8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tests/testsuite/cache_lock.rs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ fn multiple_shared() {
112112
a_b_nested(CacheLockMode::Shared, CacheLockMode::Shared);
113113
}
114114

115+
#[cfg_attr(target_os = "aix",
116+
ignore = "Test fails on AIX due to unsupported flock behaviour"
117+
)]
115118
#[cargo_test]
116119
fn multiple_shared_separate() {
117120
// Test that two independent shared locks are safe to acquire at the same time.
@@ -213,6 +216,9 @@ fn readonly() {
213216
}
214217
}
215218

219+
#[cfg_attr(target_os = "aix",
220+
ignore = "Test fails on AIX due to unsupported flock behaviour"
221+
)]
216222
#[cargo_test]
217223
fn download_then_shared_separate() {
218224
a_then_b_separate_not_blocked(
@@ -222,6 +228,9 @@ fn download_then_shared_separate() {
222228
);
223229
}
224230

231+
#[cfg_attr(target_os = "aix",
232+
ignore = "Test fails on AIX due to unsupported flock behaviour"
233+
)]
225234
#[cargo_test]
226235
fn shared_then_download_separate() {
227236
a_then_b_separate_not_blocked(
@@ -231,6 +240,9 @@ fn shared_then_download_separate() {
231240
);
232241
}
233242

243+
#[cfg_attr(target_os = "aix",
244+
ignore = "Test fails on AIX due to unsupported flock behaviour"
245+
)]
234246
#[cargo_test]
235247
fn multiple_download_separate() {
236248
// Test that with two independent download locks, the second blocks until
@@ -241,6 +253,9 @@ fn multiple_download_separate() {
241253
);
242254
}
243255

256+
#[cfg_attr(target_os = "aix",
257+
ignore = "Test fails on AIX due to unsupported flock behaviour"
258+
)]
244259
#[cargo_test]
245260
fn multiple_mutate_separate() {
246261
// Test that with two independent mutate locks, the second blocks until
@@ -251,11 +266,17 @@ fn multiple_mutate_separate() {
251266
);
252267
}
253268

269+
#[cfg_attr(target_os = "aix",
270+
ignore = "Test fails on AIX due to unsupported flock behaviour"
271+
)]
254272
#[cargo_test]
255273
fn shared_then_mutate_separate() {
256274
a_then_b_separate_blocked(CacheLockMode::Shared, CacheLockMode::MutateExclusive);
257275
}
258276

277+
#[cfg_attr(target_os = "aix",
278+
ignore = "Test fails on AIX due to unsupported flock behaviour"
279+
)]
259280
#[cargo_test]
260281
fn download_then_mutate_separate() {
261282
a_then_b_separate_blocked(
@@ -264,6 +285,9 @@ fn download_then_mutate_separate() {
264285
);
265286
}
266287

288+
#[cfg_attr(target_os = "aix",
289+
ignore = "Test fails on AIX due to unsupported flock behaviour"
290+
)]
267291
#[cargo_test]
268292
fn mutate_then_download_separate() {
269293
a_then_b_separate_blocked(
@@ -272,6 +296,9 @@ fn mutate_then_download_separate() {
272296
);
273297
}
274298

299+
#[cfg_attr(target_os = "aix",
300+
ignore = "Test fails on AIX due to unsupported flock behaviour"
301+
)]
275302
#[cargo_test]
276303
fn mutate_then_shared_separate() {
277304
a_then_b_separate_blocked(CacheLockMode::MutateExclusive, CacheLockMode::Shared);

0 commit comments

Comments
 (0)