Skip to content

Commit

Permalink
Skip perm test for freebsd too
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkassimo committed Feb 20, 2023
1 parent de09cd2 commit a69869f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tokio/tests/fs_try_exists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ async fn try_exists() {

assert!(fs::try_exists(existing_path).await.unwrap());
assert!(!fs::try_exists(nonexisting_path).await.unwrap());
#[cfg(unix)]
// FreeBSD root user always has permission to stat.
#[cfg(all(unix, not(freebsd)))]
{
use std::os::unix::prelude::PermissionsExt;
let permission_denied_directory_path = dir.path().join("baz");
Expand Down

0 comments on commit a69869f

Please sign in to comment.