1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

chown: refactor

This commit is contained in:
Knight 2016-06-27 23:27:20 +08:00
parent d4b2766c4b
commit 7e4a708e7c
2 changed files with 138 additions and 94 deletions

View file

@ -12,7 +12,6 @@ mod test_passwd {
#[test]
fn test_getuid() {
assert_eq!(0, getuid("root").unwrap());
assert_eq!(99, getuid("99").unwrap());
assert!(getuid("88888888").is_err());
assert!(getuid("agroupthatdoesntexist").is_err());
}
@ -20,7 +19,6 @@ mod test_passwd {
#[test]
fn test_getgid() {
assert_eq!(0, getgid("root").unwrap());
assert_eq!(99, getgid("99").unwrap());
assert!(getgid("88888888").is_err());
assert!(getgid("agroupthatdoesntexist").is_err());
}