mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
shred: remove unwanted padding in verbose messages
This is tested for in the GNU shred-passes test, so we don't have a choice if we want to stay compatible.
This commit is contained in:
parent
f92ee6a519
commit
af7a939b62
2 changed files with 23 additions and 1 deletions
|
@ -208,3 +208,25 @@ fn test_shred_fail_no_perm() {
|
|||
.fails()
|
||||
.stderr_contains("Couldn't rename to");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_shred_verbose_no_padding_1() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let file = "foo";
|
||||
at.write(file, "non-empty");
|
||||
ucmd.arg("-vn1")
|
||||
.arg(file)
|
||||
.succeeds()
|
||||
.stderr_only("shred: foo: pass 1/1 (random)...\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_shred_verbose_no_padding_10() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
let file = "foo";
|
||||
at.write(file, "non-empty");
|
||||
ucmd.arg("-vn10")
|
||||
.arg(file)
|
||||
.succeeds()
|
||||
.stderr_contains("shred: foo: pass 1/10 (random)...\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue