From 2d0985d7fa386ebe37045e8e50f67cc0758958fb Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 27 Aug 2025 21:35:19 +0200 Subject: [PATCH] du: add a test to cover a part of tests/du/threshold --- tests/by-util/test_du.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/by-util/test_du.rs b/tests/by-util/test_du.rs index 86c358724..ffde10303 100644 --- a/tests/by-util/test_du.rs +++ b/tests/by-util/test_du.rs @@ -1430,3 +1430,12 @@ fn test_du_inodes_total_text() { assert!(parts[0].parse::().is_ok()); } + +#[test] +fn test_du_threshold_no_suggested_values() { + // tested by tests/du/threshold + let ts = TestScenario::new(util_name!()); + + let result = ts.ucmd().arg("--threshold").fails(); + assert!(!result.stderr_str().contains("[possible values: ]")); +}