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

tests/mkdir: reduced tested permission combinations

tests/pwd: escapted directory paths
This commit is contained in:
Pyokyeong Son 2022-03-31 15:50:52 +09:00
parent 200adc98e1
commit 9a76f3ba31
2 changed files with 4 additions and 5 deletions

View file

@ -19,7 +19,6 @@ static TEST_DIR10: &str = "mkdir_test10/.";
static TEST_DIR11: &str = "mkdir_test11/..";
static TEST_DIR12: &str = "mkdir_test12";
#[test]
fn test_mkdir_mkdir() {
new_ucmd!().arg(TEST_DIR1).succeeds();
@ -175,8 +174,8 @@ fn test_umask_compliance() {
} // set umask back to original
}
for i in 0o0..0o777 {
for i in 0o0..0o027 {
// tests all permission combinations
test_single_case(i);
test_single_case(i as mode_t);
}
}
}

View file

@ -26,7 +26,7 @@ fn test_deleted_dir() {
let output = Command::new("sh")
.arg("-c")
.arg(format!(
"cd '{}'; mkdir foo; cd foo; rmdir ../foo; exec {} {}",
"cd '{}'; mkdir foo; cd foo; rmdir ../foo; exec '{}' {}",
at.root_dir_resolved(),
ts.bin_path.to_str().unwrap(),
ts.util_name,