diff --git a/tests/defaults.c b/tests/defaults.c index 46ec9c65..d7c5a02c 100644 --- a/tests/defaults.c +++ b/tests/defaults.c @@ -72,7 +72,7 @@ int main(void) if (!glfwInit()) { fprintf(stderr, "Failed to initialize GLFW: %s\n", glfwErrorString(glfwGetError())); - exit(1); + exit(EXIT_FAILURE); } window = glfwOpenWindow(0, 0, GLFW_WINDOWED, "Defaults", NULL); @@ -81,7 +81,7 @@ int main(void) glfwTerminate(); fprintf(stderr, "Failed to open GLFW window: %s\n", glfwErrorString(glfwGetError())); - exit(1); + exit(EXIT_FAILURE); } glfwGetWindowSize(window, &width, &height); @@ -99,6 +99,6 @@ int main(void) window = NULL; glfwTerminate(); - exit(0); + exit(EXIT_SUCCESS); } diff --git a/tests/events.c b/tests/events.c index bb8927c0..2577c638 100644 --- a/tests/events.c +++ b/tests/events.c @@ -336,7 +336,7 @@ int main(void) if (!glfwInit()) { fprintf(stderr, "Failed to initialize GLFW: %s\n", glfwErrorString(glfwGetError())); - exit(1); + exit(EXIT_FAILURE); } printf("Library initialized\n"); @@ -358,7 +358,7 @@ int main(void) glfwTerminate(); fprintf(stderr, "Failed to open GLFW window: %s\n", glfwErrorString(glfwGetError())); - exit(1); + exit(EXIT_FAILURE); } printf("Window opened\n"); @@ -378,6 +378,6 @@ int main(void) } glfwTerminate(); - exit(0); + exit(EXIT_SUCCESS); }