From 801d0faf457799e9772b5b97e821968f522778be Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Sun, 10 Nov 2024 01:28:52 +0100 Subject: test_check_swap: improvements and updates to unit test code --- plugins/tests/test_check_swap.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/tests/test_check_swap.c b/plugins/tests/test_check_swap.c index 319cadbf..d657c13a 100644 --- a/plugins/tests/test_check_swap.c +++ b/plugins/tests/test_check_swap.c @@ -2,17 +2,15 @@ #include "../check_swap.d/check_swap.h" #include "../../tap/tap.h" -void print_usage() {}; +void print_usage(void) {} void print_help(swap_config config) { (void) config; -}; +} const char *progname = "test_check_swap"; -int main() { - swap_config config = swap_config_init(); - - swap_result test_data = getSwapFromProcMeminfo(config, "./var/proc_meminfo"); +int main(void) { + swap_result test_data = getSwapFromProcMeminfo("./var/proc_meminfo"); plan_tests(4); -- cgit v1.2.3-74-g34f1