diff options
Diffstat (limited to 'unit/test-session.c')
-rw-r--r-- | unit/test-session.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/unit/test-session.c b/unit/test-session.c index 152c80ff..aaed275e 100644 --- a/unit/test-session.c +++ b/unit/test-session.c @@ -23,13 +23,35 @@ #include <config.h> #endif -#include <gdbus.h> +#include "gdbus/gdbus.h" -#include "connman.h" +#include "test-connman.h" + +static gboolean test_empty(gpointer data) +{ + struct test_fix *fix = data; + + util_idle_call(fix, util_quit_loop, NULL); + + return FALSE; +} + +static void setup_cb(struct test_fix *fix, gconstpointer data) +{ + util_setup(fix, data); +} + +static void teardown_cb(struct test_fix *fix, gconstpointer data) +{ + util_teardown(fix, data); +} int main(int argc, char *argv[]) { g_test_init(&argc, &argv, NULL); + util_test_add("/empty", + test_empty, setup_cb, teardown_cb); + return g_test_run(); } |