From 1f9abb5b3bb080df8dae542e8011a009ace7ab36 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Wed, 22 Jan 2025 10:48:05 -0800 Subject: [PATCH] Fix Windows test --- tests/test.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test.rs b/tests/test.rs index 39690241b7..78c4e6e5df 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -220,7 +220,8 @@ impl Test { file.display() ); - if !cfg!(windows) { + #[cfg(unix)] + { let perms = std::os::unix::fs::PermissionsExt::from_mode(0o755); fs::set_permissions(file, perms).unwrap(); }