Skip to content

Commit 6fdec9e

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/testsuite/cache_lock.rs

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

115+
#[cfg_attr(target_os = "aix", ignore = "Test fails on AIX due to unsupported flock behaviour")]
115116
#[cargo_test]
116117
fn multiple_shared_separate() {
117118
// Test that two independent shared locks are safe to acquire at the same time.
@@ -213,6 +214,7 @@ fn readonly() {
213214
}
214215
}
215216

217+
#[cfg_attr(target_os = "aix", ignore = "Test fails on AIX due to unsupported flock behaviour")]
216218
#[cargo_test]
217219
fn download_then_shared_separate() {
218220
a_then_b_separate_not_blocked(
@@ -222,6 +224,7 @@ fn download_then_shared_separate() {
222224
);
223225
}
224226

227+
#[cfg_attr(target_os = "aix", ignore = "Test fails on AIX due to unsupported flock behaviour")]
225228
#[cargo_test]
226229
fn shared_then_download_separate() {
227230
a_then_b_separate_not_blocked(
@@ -231,6 +234,7 @@ fn shared_then_download_separate() {
231234
);
232235
}
233236

237+
#[cfg_attr(target_os = "aix", ignore = "Test fails on AIX due to unsupported flock behaviour")]
234238
#[cargo_test]
235239
fn multiple_download_separate() {
236240
// Test that with two independent download locks, the second blocks until
@@ -241,6 +245,7 @@ fn multiple_download_separate() {
241245
);
242246
}
243247

248+
#[cfg_attr(target_os = "aix", ignore = "Test fails on AIX due to unsupported flock behaviour")]
244249
#[cargo_test]
245250
fn multiple_mutate_separate() {
246251
// Test that with two independent mutate locks, the second blocks until
@@ -251,11 +256,13 @@ fn multiple_mutate_separate() {
251256
);
252257
}
253258

259+
#[cfg_attr(target_os = "aix", ignore = "Test fails on AIX due to unsupported flock behaviour")]
254260
#[cargo_test]
255261
fn shared_then_mutate_separate() {
256262
a_then_b_separate_blocked(CacheLockMode::Shared, CacheLockMode::MutateExclusive);
257263
}
258264

265+
#[cfg_attr(target_os = "aix", ignore = "Test fails on AIX due to unsupported flock behaviour")]
259266
#[cargo_test]
260267
fn download_then_mutate_separate() {
261268
a_then_b_separate_blocked(
@@ -264,6 +271,7 @@ fn download_then_mutate_separate() {
264271
);
265272
}
266273

274+
#[cfg_attr(target_os = "aix", ignore = "Test fails on AIX due to unsupported flock behaviour")]
267275
#[cargo_test]
268276
fn mutate_then_download_separate() {
269277
a_then_b_separate_blocked(
@@ -272,6 +280,7 @@ fn mutate_then_download_separate() {
272280
);
273281
}
274282

283+
#[cfg_attr(target_os = "aix", ignore = "Test fails on AIX due to unsupported flock behaviour")]
275284
#[cargo_test]
276285
fn mutate_then_shared_separate() {
277286
a_then_b_separate_blocked(CacheLockMode::MutateExclusive, CacheLockMode::Shared);

0 commit comments

Comments
 (0)