Skip to content

Commit

Permalink
Only provide Test.chmod on unix, where it works
Browse files Browse the repository at this point in the history
  • Loading branch information
artm committed Sep 3, 2024
1 parent 44a4dd3 commit 4e4a6aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ impl Test {
self
}

#[cfg(unix)]
pub(crate) fn chmod(self, path: impl AsRef<Path>, perm: Permissions) -> Self {
fs::set_permissions(self.tempdir.path().join(path.as_ref()), perm).unwrap();
self
Expand Down

0 comments on commit 4e4a6aa

Please sign in to comment.