mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tests/mkdir: reduced tested permission combinations
tests/pwd: escapted directory paths
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user