summaryrefslogtreecommitdiff
path: root/src/tests/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-04-16 15:16:15 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:21 +0100
commit259f9067c2fa562e6f7d92f5bbb4018a769c0a07 (patch)
tree03cb17e1947a5513bbd7698926cfab9d6b4cb4af /src/tests/elua
parenta6c5ec55a7462aad831cb82ca96ee3c1d4da6eb9 (diff)
elua lib: tests for require/appload refs
Diffstat (limited to 'src/tests/elua')
-rw-r--r--src/tests/elua/elua_lib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/elua/elua_lib.c b/src/tests/elua/elua_lib.c
index e93707322c..98fca1a321 100644
--- a/src/tests/elua/elua_lib.c
+++ b/src/tests/elua/elua_lib.c
@@ -50,6 +50,14 @@ START_TEST(elua_api)
50 fail_if(!elua_state_i18n_setup(st)); 50 fail_if(!elua_state_i18n_setup(st));
51 fail_if(!elua_state_io_setup(st)); 51 fail_if(!elua_state_io_setup(st));
52 52
53 fail_if(!elua_state_require_ref_push(st));
54 fail_if(lua_type(lst, -1) != LUA_TFUNCTION);
55 lua_pop(lst, 1);
56
57 fail_if(!elua_state_appload_ref_push(st));
58 fail_if(lua_type(lst, -1) != LUA_TFUNCTION);
59 lua_pop(lst, 1);
60
53 elua_state_free(st); 61 elua_state_free(st);
54 62
55 elua_shutdown(); 63 elua_shutdown();