summaryrefslogtreecommitdiff
path: root/src/tests/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-04-16 13:45:08 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:20 +0100
commit1f35cdd473fec6c17bb42843ec11fc0b8ca4c67a (patch)
treef1f1d3b83ce0b29c59427b1ea1451105c986142d /src/tests/elua
parentdbe34d803c37a1e9b85b787fba4f6e015c66c134 (diff)
elua: initial test (state creation/deletion)
Diffstat (limited to 'src/tests/elua')
-rw-r--r--src/tests/elua/elua_lib.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/tests/elua/elua_lib.c b/src/tests/elua/elua_lib.c
index 702aed50fe..cfa29097b9 100644
--- a/src/tests/elua/elua_lib.c
+++ b/src/tests/elua/elua_lib.c
@@ -9,13 +9,21 @@
9#include "Elua.h" 9#include "Elua.h"
10#include "elua_suite.h" 10#include "elua_suite.h"
11 11
12/*START_TEST(test_name) 12START_TEST(elua_api)
13{ 13{
14 fail_if(!elua_init());
15
16 Elua_State *st = elua_state_new("test");
17 fail_if(!st);
18
19 elua_state_free(st);
20
21 elua_shutdown();
14} 22}
15END_TEST*/ 23END_TEST
16 24
17void elua_lib_test(TCase *tc) 25void elua_lib_test(TCase *tc)
18{ 26{
19 //tcase_add_test(tc, test_name); 27 tcase_add_test(tc, elua_api);
20} 28}
21 29