From e9aadea402f2f533e6d9137171f5bff4eeb4bafc Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Thu, 23 Apr 2015 16:13:27 +0100 Subject: [PATCH] elua lib: fix tests --- src/tests/elua/elua_lib.c | 8 +++----- 1 file 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) fail_if(strcmp(elua_state_prog_name_get(st), "test")); - fail_if(!elua_state_modules_setup(st)); - fail_if(!elua_state_i18n_setup(st)); - fail_if(!elua_state_io_setup(st)); + fail_if(!elua_state_setup(st)); fail_if(!elua_state_require_ref_push(st)); fail_if(lua_type(lst, -1) != LUA_TFUNCTION); @@ -96,9 +94,9 @@ START_TEST(elua_api) fail_if(remove(buf)); /* halfassed testing here, but not possible otherwise */ - fail_if(elua_util_error_report(st, "foo", 0)); + fail_if(elua_util_error_report(st, 0)); lua_pushliteral(lst, "msg"); - fail_if(!elua_util_error_report(st, "foo", 5)); + fail_if(!elua_util_error_report(st, 5)); fail_if(lua_gettop(lst) > 0); fail_if(elua_util_script_run(st, 2, cargv, 1, &quit)); -- 2.34.1