mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Remove users crate
This commit is contained in:
parent
99fa504257
commit
29f011e28c
6 changed files with 17 additions and 29 deletions
|
@ -2,12 +2,12 @@
|
|||
|
||||
use crate::common::util::{is_ci, TestScenario};
|
||||
use filetime::FileTime;
|
||||
use rust_users::{get_effective_gid, get_effective_uid};
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
#[cfg(not(any(windows, target_os = "freebsd")))]
|
||||
use std::process::Command;
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
use std::thread::sleep;
|
||||
use uucore::process::{getegid, geteuid};
|
||||
|
||||
#[test]
|
||||
fn test_invalid_arg() {
|
||||
|
@ -322,7 +322,7 @@ fn test_install_target_new_file_with_group() {
|
|||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let file = "file";
|
||||
let dir = "target_dir";
|
||||
let gid = get_effective_gid();
|
||||
let gid = getegid();
|
||||
|
||||
at.touch(file);
|
||||
at.mkdir(dir);
|
||||
|
@ -349,7 +349,7 @@ fn test_install_target_new_file_with_owner() {
|
|||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let file = "file";
|
||||
let dir = "target_dir";
|
||||
let uid = get_effective_uid();
|
||||
let uid = geteuid();
|
||||
|
||||
at.touch(file);
|
||||
at.mkdir(dir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue