summaryrefslogtreecommitdiffstats
path: root/plugins/tests/test_check_swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/tests/test_check_swap.c')
-rw-r--r--plugins/tests/test_check_swap.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/tests/test_check_swap.c b/plugins/tests/test_check_swap.c
new file mode 100644
index 00000000..42ac0086
--- /dev/null
+++ b/plugins/tests/test_check_swap.c
@@ -0,0 +1,21 @@
1
2#include "../check_swap.d/check_swap.h"
3#include "../../tap/tap.h"
4
5void print_usage() {};
6void print_help(swap_config config) {
7 (void) config;
8};
9
10const char *progname = "test_check_swap";
11
12int main() {
13
14 swap_config config = swap_config_init();
15
16 swap_result test_data = get_swap_data(config);
17
18 plan_tests(1);
19
20 ok(test_data.errorcode == 0, "Test whether we manage to retrieve swap data");
21}