summaryrefslogtreecommitdiff
path: root/src/tests/elua/elua_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/elua/elua_lib.c')
-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));