diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-01-04 02:37:26 +0100 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2024-01-04 02:37:26 +0100 |
commit | 735b04eff721a28e791714c0da4c8ac5726bfbcf (patch) | |
tree | 2514aeacf0ad70a3ffe3918a1e349b9014fd105e /plugins/tests/test_check_swap.c | |
parent | 1d669e47eb9e6971b266d451274c02c5203b1906 (diff) | |
download | monitoring-plugins-735b04eff721a28e791714c0da4c8ac5726bfbcf.tar.gz |
Fix tests
Diffstat (limited to 'plugins/tests/test_check_swap.c')
-rw-r--r-- | plugins/tests/test_check_swap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/tests/test_check_swap.c b/plugins/tests/test_check_swap.c index 86ab188f..319cadbf 100644 --- a/plugins/tests/test_check_swap.c +++ b/plugins/tests/test_check_swap.c | |||
@@ -10,7 +10,6 @@ void print_help(swap_config config) { | |||
10 | const char *progname = "test_check_swap"; | 10 | const char *progname = "test_check_swap"; |
11 | 11 | ||
12 | int main() { | 12 | int main() { |
13 | |||
14 | swap_config config = swap_config_init(); | 13 | swap_config config = swap_config_init(); |
15 | 14 | ||
16 | swap_result test_data = getSwapFromProcMeminfo(config, "./var/proc_meminfo"); | 15 | swap_result test_data = getSwapFromProcMeminfo(config, "./var/proc_meminfo"); |
@@ -19,6 +18,6 @@ int main() { | |||
19 | 18 | ||
20 | ok(test_data.errorcode == 0, "Test whether we manage to retrieve swap data"); | 19 | ok(test_data.errorcode == 0, "Test whether we manage to retrieve swap data"); |
21 | ok(test_data.metrics.total == 34233905152, "Is the total Swap correct"); | 20 | ok(test_data.metrics.total == 34233905152, "Is the total Swap correct"); |
22 | ok(test_data.metrics.free == 34231021568, "Is the free Swap correct"); | 21 | ok(test_data.metrics.free == 34233905152, "Is the free Swap correct"); |
23 | ok(test_data.metrics.used == 0, "Is the used Swap correct"); | 22 | ok(test_data.metrics.used == 0, "Is the used Swap correct"); |
24 | } | 23 | } |