plate-test: assert the work directory stays owner-writable

This commit is contained in:
Dylan M. Taylor committed 2026-11-02 21:27:06 -05:00
1 parent b96da36713
commit c953d6dc65
1 file changed
+3 -1
+3 -1
View File
@@ -109,7 +109,9 @@ mod tests {
#[cfg(unix)]
{
use std::os::unix::fs::PermissionsExt as _;
assert_eq!(std::fs::metadata(a.path()).unwrap().permissions().mode() & 0o077, 0);
let mode = std::fs::metadata(a.path()).unwrap().permissions().mode();
assert_eq!(mode & 0o077, 0);
assert_ne!(mode & 0o200, 0, "owner must be able to write");
}
let path = a.path().to_path_buf();
drop(a);