Skip to content

Commit 9b45856

Browse files
committed
Fix dir test on non-illumos
1 parent fd81ca3 commit 9b45856

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_dir.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ use tempfile::tempdir;
77

88
#[cfg(test)]
99
fn flags() -> OFlag {
10+
#[cfg(target_os = "illumos")]
1011
let f = OFlag::O_RDONLY | OFlag::O_CLOEXEC;
1112

12-
#[cfg(not(target_os = "illumos"))] {
13-
f |= OFlag::O_DIRECTORY;
14-
}
13+
#[cfg(not(target_os = "illumos"))]
14+
let f = OFlag::O_RDONLY | OFlag::O_CLOEXEC | OFlag::O_DIRECTORY;
1515

1616
f
1717
}

0 commit comments

Comments
 (0)