diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-11-09 16:29:17 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-11-09 16:29:17 -0500 |
commit | ccaf1d7af81223169fba71fe613f439df87b6fd3 (patch) | |
tree | 1b774ef3517825a1f6c6d5dea9e00656d662b1a8 /tests | |
parent | a432d0ec1a03d7821e40f2499bea08f65ee71e6f (diff) | |
download | dimension-ccaf1d7af81223169fba71fe613f439df87b6fd3.tar.xz |
Don't fail GL test if we can't get a GL context.
Instead output a warning. Useful for running tests from a CLI.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libdimension/gl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libdimension/gl.c b/tests/libdimension/gl.c index 7e45c3b..d943ac3 100644 --- a/tests/libdimension/gl.c +++ b/tests/libdimension/gl.c @@ -49,8 +49,8 @@ main() { display = dmnsn_new_display(scene->canvas); if (!display) { dmnsn_delete_scene(scene); - fprintf(stderr, "--- Couldn't initialize X or glX! ---\n"); - return EXIT_FAILURE; + fprintf(stderr, "--- WARNING: Couldn't initialize X or glX! ---\n"); + return EXIT_SUCCESS; } /* Render the scene */ |