mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
tests/mkdir: reduced tested permission combinations
tests/pwd: escapted directory paths
This commit is contained in:
parent
200adc98e1
commit
9a76f3ba31
2 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue