mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
dd: fix flaky test_null_stats
If the first four decimal digits are zero, GNU dd elides them altogether.
Therefore, this test just contained an overly-strict regex.
See also ede944e1f8
.
This commit is contained in:
parent
a75b8a0f67
commit
0375bc98a6
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ fn test_null_stats() {
|
||||||
.arg("if=null.txt")
|
.arg("if=null.txt")
|
||||||
.run()
|
.run()
|
||||||
.stderr_contains("0+0 records in\n0+0 records out\n0 bytes copied, ")
|
.stderr_contains("0+0 records in\n0+0 records out\n0 bytes copied, ")
|
||||||
.stderr_matches(&Regex::new(r"\d\.\d+(e-\d\d)? s, ").unwrap())
|
.stderr_matches(&Regex::new(r"\d(\.\d+)?(e-\d\d)? s, ").unwrap())
|
||||||
.stderr_contains("0.0 B/s")
|
.stderr_contains("0.0 B/s")
|
||||||
.success();
|
.success();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue