summaryrefslogtreecommitdiff
path: root/src/tests/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-04-24 16:01:24 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:23 +0100
commite73f7f7a40ba3832d743ae4b893940440a38e3d4 (patch)
tree4e115a67920858cbd16f01dcaa37eec9a3153ccb /src/tests/elua
parente9aadea402f2f533e6d9137171f5bff4eeb4bafc (diff)
elua lib: use Eina_Bool as return val in some utils
Diffstat (limited to 'src/tests/elua')
-rw-r--r--src/tests/elua/elua_lib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/elua/elua_lib.c b/src/tests/elua/elua_lib.c
index 445a89d9d3..7ee3f2b0a1 100644
--- a/src/tests/elua/elua_lib.c
+++ b/src/tests/elua/elua_lib.c
@@ -66,9 +66,9 @@ START_TEST(elua_api)
66 fail_if(lua_type(lst, -1) != LUA_TFUNCTION); 66 fail_if(lua_type(lst, -1) != LUA_TFUNCTION);
67 lua_pop(lst, 1); 67 lua_pop(lst, 1);
68 68
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);
@@ -88,7 +88,7 @@ START_TEST(elua_api)
88 fail_if(!f); 88 fail_if(!f);
89 fprintf(f, "return 5\n"); 89 fprintf(f, "return 5\n");
90 fclose(f); 90 fclose(f);
91 fail_if(elua_util_file_run(st, buf)); 91 fail_if(!elua_util_file_run(st, buf));
92 fail_if(lua_tointeger(lst, -1) != 5); 92 fail_if(lua_tointeger(lst, -1) != 5);
93 lua_pop(lst, 1); 93 lua_pop(lst, 1);
94 fail_if(remove(buf)); 94 fail_if(remove(buf));
@@ -99,7 +99,7 @@ START_TEST(elua_api)
99 fail_if(!elua_util_error_report(st, 5)); 99 fail_if(!elua_util_error_report(st, 5));
100 fail_if(lua_gettop(lst) > 0); 100 fail_if(lua_gettop(lst) > 0);
101 101
102 fail_if(elua_util_script_run(st, 2, cargv, 1, &quit)); 102 fail_if(!elua_util_script_run(st, 2, cargv, 1, &quit));
103 fail_if(quit != 1); 103 fail_if(quit != 1);
104 104
105 f = fopen(buf, "w"); 105 f = fopen(buf, "w");
@@ -107,7 +107,7 @@ START_TEST(elua_api)
107 fprintf(f, "return false"); 107 fprintf(f, "return false");
108 fclose(f); 108 fclose(f);
109 cargv[1] = buf; 109 cargv[1] = buf;
110 fail_if(elua_util_script_run(st, 2, cargv, 1, &quit)); 110 fail_if(!elua_util_script_run(st, 2, cargv, 1, &quit));
111 fail_if(quit != 0); 111 fail_if(quit != 0);
112 fail_if(remove(buf)); 112 fail_if(remove(buf));
113 113