summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-04-23 16:13:27 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:23 +0100
commite9aadea402f2f533e6d9137171f5bff4eeb4bafc (patch)
tree5c1aaf8b90d0bbd87ea35ab6f5e056d27a5bc207
parent88faba813c7c0369f4e5c1fd521d41f439c8cfe0 (diff)
elua lib: fix tests
-rw-r--r--src/tests/elua/elua_lib.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tests/elua/elua_lib.c b/src/tests/elua/elua_lib.c
index 0d670e56d8..445a89d9d3 100644
--- a/src/tests/elua/elua_lib.c
+++ b/src/tests/elua/elua_lib.c
@@ -56,9 +56,7 @@ START_TEST(elua_api)
56 56
57 fail_if(strcmp(elua_state_prog_name_get(st), "test")); 57 fail_if(strcmp(elua_state_prog_name_get(st), "test"));
58 58
59 fail_if(!elua_state_modules_setup(st)); 59 fail_if(!elua_state_setup(st));
60 fail_if(!elua_state_i18n_setup(st));
61 fail_if(!elua_state_io_setup(st));
62 60
63 fail_if(!elua_state_require_ref_push(st)); 61 fail_if(!elua_state_require_ref_push(st));
64 fail_if(lua_type(lst, -1) != LUA_TFUNCTION); 62 fail_if(lua_type(lst, -1) != LUA_TFUNCTION);
@@ -96,9 +94,9 @@ START_TEST(elua_api)
96 fail_if(remove(buf)); 94 fail_if(remove(buf));
97 95
98 /* halfassed testing here, but not possible otherwise */ 96 /* halfassed testing here, but not possible otherwise */
99 fail_if(elua_util_error_report(st, "foo", 0)); 97 fail_if(elua_util_error_report(st, 0));
100 lua_pushliteral(lst, "msg"); 98 lua_pushliteral(lst, "msg");
101 fail_if(!elua_util_error_report(st, "foo", 5)); 99 fail_if(!elua_util_error_report(st, 5));
102 fail_if(lua_gettop(lst) > 0); 100 fail_if(lua_gettop(lst) > 0);
103 101
104 fail_if(elua_util_script_run(st, 2, cargv, 1, &quit)); 102 fail_if(elua_util_script_run(st, 2, cargv, 1, &quit));