summaryrefslogtreecommitdiff
path: root/src/gl/window.test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gl/window.test.c')
-rw-r--r--src/gl/window.test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gl/window.test.c b/src/gl/window.test.c
index 0dc255b..33b52a4 100644
--- a/src/gl/window.test.c
+++ b/src/gl/window.test.c
@@ -14,7 +14,7 @@ int mock_glfwInit()
lily_mock_call(mock_glfwInit_data, NULL);
int result;
- lily_dequeue(mock_glfwInit_data->values, int, &result);
+ mock_dequeue(mock_glfwInit, int, &result);
return result;
}
@@ -37,6 +37,8 @@ void gl_init_succeeds()
USE_MOCK(mock_glfwInit);
lua_State *L = luaL_newstate();
+ /* queue success */
+ mock_enqueue(mock_glfwInit, int, GLFW_TRUE);
lua_pushcfunction(L, gl_init);
int error = lua_pcall(L, 0, 0, 0);