1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 05:57:46 +00:00

test/mkdir: fixed assert types to both mode_t

This commit is contained in:
Pyokyeong Son 2022-02-24 07:43:53 +00:00
parent fe9e9e6689
commit 31d91f36b9

View file

@ -113,7 +113,7 @@ fn test_umask_compliance() {
let original_umask = unsafe { umask(umask_set) };
ucmd.arg(TEST_DIR8).succeeds();
let perms = at.metadata(TEST_DIR8).permissions().mode();
let perms = at.metadata(TEST_DIR8).permissions().mode() as mode_t;
assert_eq!(perms, (!umask_set & 0o0777) + 0o40000); // before compare, add the setguid, uid bits
unsafe { umask(original_umask); } // set umask back to original
@ -122,5 +122,5 @@ fn test_umask_compliance() {
for i in 0o0..0o777 { // tests all permission combinations
test_single_case(i);
}
}