mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
test(rm): Add a test for multiple -f (#1671)
This commit is contained in:
@@ -85,6 +85,24 @@ fn test_rm_force() {
|
||||
assert!(!at.file_exists(file_b));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_rm_force_multiple() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let file_a = "test_rm_force_a";
|
||||
let file_b = "test_rm_force_b";
|
||||
|
||||
ucmd.arg("-f")
|
||||
.arg("-f")
|
||||
.arg("-f")
|
||||
.arg(file_a)
|
||||
.arg(file_b)
|
||||
.succeeds()
|
||||
.no_stderr();
|
||||
|
||||
assert!(!at.file_exists(file_a));
|
||||
assert!(!at.file_exists(file_b));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_rm_empty_directory() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
||||
Reference in New Issue
Block a user