From d3faf13961c61b3ad69b47960124d3269c5f335e Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Wed, 27 Mar 2024 00:36:41 +0100 Subject: check_disk: Fail on missing arguments for --warning and --critical and fix a test case (#1935) * check_disk: Fail on missing arguments for --warning and --critical * Add new test function for percentage expressions and use it in check_disk * Add error abort in tests if they fail to parse output * Fix typo in test which probably broke the test since forever :-( --- plugins/utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/utils.h') diff --git a/plugins/utils.h b/plugins/utils.h index 62e489be..f939e337 100644 --- a/plugins/utils.h +++ b/plugins/utils.h @@ -49,6 +49,7 @@ bool is_positive (char *); bool is_negative (char *); bool is_nonnegative (char *); bool is_percentage (char *); +bool is_percentage_expression (const char[]); bool is_option (char *); -- cgit v1.2.3-74-g34f1