Skip to content

Commit 8c4e3ff

Browse files
committed
fs: Update skipped file lock tests to match flock support
The list of platforms for which file locks are tested is smaller than the list of platforms that support it. Synchronize these here. Link: https://github.com/rust-lang/rust/blob/07bdbaedc63094281483c40a88a1a8f2f8ffadc5/library/std/src/sys/fs/unix.rs#L1291-L1308
1 parent 07bdbae commit 8c4e3ff

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

library/std/src/fs/tests.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,15 @@ fn file_test_io_seek_and_write() {
224224
#[test]
225225
#[cfg(any(
226226
windows,
227+
target_os = "aix",
228+
target_os = "cygwin",
227229
target_os = "freebsd",
230+
target_os = "fuchsia",
231+
target_os = "illumos",
228232
target_os = "linux",
229233
target_os = "netbsd",
234+
target_os = "openbsd",
230235
target_os = "solaris",
231-
target_os = "illumos",
232236
target_vendor = "apple",
233237
))]
234238
fn file_lock_multiple_shared() {
@@ -249,11 +253,15 @@ fn file_lock_multiple_shared() {
249253
#[test]
250254
#[cfg(any(
251255
windows,
256+
target_os = "aix",
257+
target_os = "cygwin",
252258
target_os = "freebsd",
259+
target_os = "fuchsia",
260+
target_os = "illumos",
253261
target_os = "linux",
254262
target_os = "netbsd",
263+
target_os = "openbsd",
255264
target_os = "solaris",
256-
target_os = "illumos",
257265
target_vendor = "apple",
258266
))]
259267
fn file_lock_blocking() {
@@ -275,11 +283,15 @@ fn file_lock_blocking() {
275283
#[test]
276284
#[cfg(any(
277285
windows,
286+
target_os = "aix",
287+
target_os = "cygwin",
278288
target_os = "freebsd",
289+
target_os = "fuchsia",
290+
target_os = "illumos",
279291
target_os = "linux",
280292
target_os = "netbsd",
293+
target_os = "openbsd",
281294
target_os = "solaris",
282-
target_os = "illumos",
283295
target_vendor = "apple",
284296
))]
285297
fn file_lock_drop() {
@@ -298,11 +310,15 @@ fn file_lock_drop() {
298310
#[test]
299311
#[cfg(any(
300312
windows,
313+
target_os = "aix",
314+
target_os = "cygwin",
301315
target_os = "freebsd",
316+
target_os = "fuchsia",
317+
target_os = "illumos",
302318
target_os = "linux",
303319
target_os = "netbsd",
320+
target_os = "openbsd",
304321
target_os = "solaris",
305-
target_os = "illumos",
306322
target_vendor = "apple",
307323
))]
308324
fn file_lock_dup() {

0 commit comments

Comments
 (0)