summaryrefslogtreecommitdiff
path: root/test/endless/test-init.c
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2013-12-14 11:09:12 -0800
committerPhilip Chimento <philip@endlessm.com>2014-01-15 18:24:45 -0200
commit0fcd808fc138d3f0cb7e0bdb40fbee1ae86aae43 (patch)
treef2a852e8f3c54c73e29f3567c25d46df78809678 /test/endless/test-init.c
parent7844fc96bbf1d446923fc4e6cd1b3981104e6b0a (diff)
Clean up the structure of the tests directory
Move all the tests for the SDK into tests/endless, move all the demos into tests/demos, move all the smoke tests into smoke-tests [endlessm/eos-sdk#444]
Diffstat (limited to 'test/endless/test-init.c')
-rw-r--r--test/endless/test-init.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/endless/test-init.c b/test/endless/test-init.c
new file mode 100644
index 0000000..482c079
--- /dev/null
+++ b/test/endless/test-init.c
@@ -0,0 +1,19 @@
+/* Copyright 2013 Endless Mobile, Inc. */
+
+#include <glib.h>
+#include <endless/endless.h>
+#include "endless/eosinit-private.h"
+
+#include "run-tests.h"
+
+static void
+test_constructor_called (void)
+{
+ g_assert (eos_is_inited ());
+}
+
+void
+add_init_tests (void)
+{
+ g_test_add_func ("/init/constructor-called", test_constructor_called);
+}