diff options
author | Daniel Kolesa <d.kolesa@samsung.com> | 2015-04-16 13:45:08 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-05-06 15:05:20 +0100 |
commit | 1f35cdd473fec6c17bb42843ec11fc0b8ca4c67a (patch) | |
tree | f1f1d3b83ce0b29c59427b1ea1451105c986142d | |
parent | dbe34d803c37a1e9b85b787fba4f6e015c66c134 (diff) | |
download | efl-1f35cdd473fec6c17bb42843ec11fc0b8ca4c67a.tar.gz |
elua: initial test (state creation/deletion)
-rw-r--r-- | src/tests/elua/elua_lib.c | 14 |
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 @@ #include "Elua.h" #include "elua_suite.h" -/*START_TEST(test_name) +START_TEST(elua_api) { + fail_if(!elua_init()); + + Elua_State *st = elua_state_new("test"); + fail_if(!st); + + elua_state_free(st); + + elua_shutdown(); } -END_TEST*/ +END_TEST void elua_lib_test(TCase *tc) { - //tcase_add_test(tc, test_name); + tcase_add_test(tc, elua_api); } |