1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 19:36:16 +00:00

Merge pull request #4637 from haciek/du_threshold_err_fix

du: threshold error message fix
This commit is contained in:
Daniel Hofstetter 2023-03-27 16:32:30 +02:00 committed by GitHub
commit 089e645e3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -546,6 +546,15 @@ fn test_du_threshold() {
.stdout_contains("deeper_dir");
}
#[test]
fn test_du_invalid_threshold() {
let ts = TestScenario::new(util_name!());
let threshold = "-0";
ts.ucmd().arg(format!("--threshold={threshold}")).fails();
}
#[test]
fn test_du_apparent_size() {
let ts = TestScenario::new(util_name!());