diff --git a/tests/by-util/test_rm.rs b/tests/by-util/test_rm.rs index 7c5a1c787..f9a4dd0d5 100644 --- a/tests/by-util/test_rm.rs +++ b/tests/by-util/test_rm.rs @@ -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!();