summaryrefslogtreecommitdiff
path: root/src/tests/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-04-27 11:30:33 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:23 +0100
commitdb66fe62551c170da81b071c0055b3b3dd4159da (patch)
treeaa3b808c35916df39cd8643c24fa80cec809425d /src/tests/elua
parente73f7f7a40ba3832d743ae4b893940440a38e3d4 (diff)
elua lib: fix elua_util_app_load + docs
Diffstat (limited to 'src/tests/elua')
-rw-r--r--src/tests/elua/elua_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/elua/elua_lib.c b/src/tests/elua/elua_lib.c
index 7ee3f2b0a1..82857270db 100644
--- a/src/tests/elua/elua_lib.c
+++ b/src/tests/elua/elua_lib.c
@@ -69,10 +69,10 @@ START_TEST(elua_api)
69 fail_if(!elua_util_require(st, "util")); 69 fail_if(!elua_util_require(st, "util"));
70 fail_if(!elua_util_string_run(st, "return 1337", "foo")); 70 fail_if(!elua_util_string_run(st, "return 1337", "foo"));
71 fail_if(elua_util_string_run(st, "foo bar", "foo")); /* invalid code */ 71 fail_if(elua_util_string_run(st, "foo bar", "foo")); /* invalid code */
72 fail_if(!elua_util_app_load(st, "lualian")); 72 fail_if(elua_util_app_load(st, "lualian"));
73 fail_if(lua_type(lst, -1) != LUA_TFUNCTION); 73 fail_if(lua_type(lst, -1) != LUA_TFUNCTION);
74 lua_pop(lst, 1); 74 lua_pop(lst, 1);
75 fail_if(elua_util_app_load(st, "non_existent_app")); 75 fail_if(!elua_util_app_load(st, "non_existent_app"));
76 fail_if(lua_type(lst, -1) != LUA_TSTRING); 76 fail_if(lua_type(lst, -1) != LUA_TSTRING);
77 lua_pop(lst, 1); 77 lua_pop(lst, 1);
78 fail_if(elua_io_loadfile(st, ELUA_CORE_DIR "/util.lua")); 78 fail_if(elua_io_loadfile(st, ELUA_CORE_DIR "/util.lua"));