Skip to content

Commit 8225387

Browse files
committed
Fix test_pathconf_limited on OpenBSD
There appears to be some interraction with this test and another one when they are run in parallel, causing it to return ENOENT.
1 parent c6214cc commit 8225387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_unistd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ fn test_fpathconf_limited() {
242242
#[test]
243243
fn test_pathconf_limited() {
244244
// AFAIK, PATH_MAX is limited on all platforms, so it makes a good test
245-
let path_max = pathconf(".", PathconfVar::PATH_MAX);
245+
let path_max = pathconf("/", PathconfVar::PATH_MAX);
246246
assert!(path_max.expect("pathconf failed").expect("PATH_MAX is unlimited") > 0);
247247
}
248248

0 commit comments

Comments
 (0)