Skip to content

Commit 507a084

Browse files
committed
don't assume macos target os has a /root directory
1 parent 1b7759c commit 507a084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ mod test {
10311031
// this test assumes that there is a /root directory and that
10321032
// the user running this test is not root or otherwise doesn't
10331033
// have permission to read its contents
1034-
#[cfg(unix)]
1034+
#[cfg(all(unix, not(target_os="macos")))]
10351035
#[test]
10361036
fn test_iteration_errors() {
10371037
use std::io;

0 commit comments

Comments
 (0)