mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 17:58:06 +00:00
install: add high bits to file permissions in tests
This commit is contained in:
parent
957d489604
commit
38cd8edb5b
1 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ fn test_install_mode_numeric() {
|
|||
assert!(at.file_exists(file));
|
||||
assert!(at.file_exists(dest_file));
|
||||
let permissions = at.metadata(dest_file).permissions();
|
||||
assert_eq!(0o333 as u32, PermissionsExt::mode(&permissions));
|
||||
assert_eq!(0o100333 as u32, PermissionsExt::mode(&permissions));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -103,7 +103,7 @@ fn test_install_mode_symbolic() {
|
|||
assert!(at.file_exists(file));
|
||||
assert!(at.file_exists(dest_file));
|
||||
let permissions = at.metadata(dest_file).permissions();
|
||||
assert_eq!(0o003 as u32, PermissionsExt::mode(&permissions));
|
||||
assert_eq!(0o100003 as u32, PermissionsExt::mode(&permissions));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -134,5 +134,5 @@ fn test_install_mode_directories() {
|
|||
|
||||
assert!(at.dir_exists(component));
|
||||
let permissions = at.metadata(component).permissions();
|
||||
assert_eq!(0o333 as u32, PermissionsExt::mode(&permissions));
|
||||
assert_eq!(0o040333 as u32, PermissionsExt::mode(&permissions));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue