elua lib: fix tests
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Thu, 23 Apr 2015 15:13:27 +0000 (16:13 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 6 May 2015 14:05:23 +0000 (15:05 +0100)
src/tests/elua/elua_lib.c

index 0d670e56d8bc7397930ab8f5df5487662a14bfda..445a89d9d3470d8164ecc03271c2f623cd9a42fc 100644 (file)
@@ -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));