1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

l10n: port shred for translation + add french

This commit is contained in:
Sylvestre Ledru 2025-06-22 00:29:08 +02:00
parent 31bb95394c
commit 6287c7bfa9
4 changed files with 205 additions and 37 deletions

View file

@ -292,3 +292,22 @@ fn test_random_source_dir() {
.fails()
.stderr_only("shred: foo.txt: pass 1/3 (random)...\nshred: foo.txt: File write pass failed: Is a directory\n");
}
#[test]
fn test_shred_rename_exhaustion() {
// GNU: tests/shred/shred-remove.sh
let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;
at.touch("test");
at.touch("000");
let result = scene.ucmd().arg("-vu").arg("test").succeeds();
result.stderr_contains("renamed to 0000");
result.stderr_contains("renamed to 001");
result.stderr_contains("renamed to 00");
result.stderr_contains("removed");
assert!(!at.file_exists("test"));
}