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 11, 2024
1 parent fd14aec commit 064a505
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 064a505

Please sign in to comment.