From 4b9641002a7b0edac8d88762385315939d2ff753 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 30 Nov 2010 21:14:36 -0500 Subject: Use ENOSYS rather than ENOTSUP. --- tests/libdimension/display-stubs.c | 2 ++ tests/libdimension/render.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/libdimension') diff --git a/tests/libdimension/display-stubs.c b/tests/libdimension/display-stubs.c index 03cc19d..101289d 100644 --- a/tests/libdimension/display-stubs.c +++ b/tests/libdimension/display-stubs.c @@ -18,10 +18,12 @@ *************************************************************************/ #include "tests.h" +#include dmnsn_display * dmnsn_new_display(const dmnsn_canvas *canvas) { + errno = ENOSYS; return NULL; } diff --git a/tests/libdimension/render.c b/tests/libdimension/render.c index 776fc1c..136866e 100644 --- a/tests/libdimension/render.c +++ b/tests/libdimension/render.c @@ -215,7 +215,7 @@ main(void) /* Optimize the canvas for PNG export */ errno = 0; if (dmnsn_png_optimize_canvas(scene->canvas) != 0) { - if (errno == ENOTSUP) { + if (errno == ENOSYS) { have_png = false; } else { dmnsn_delete_scene(scene); @@ -227,7 +227,7 @@ main(void) /* Optimize the canvas for GL drawing */ errno = 0; if (dmnsn_gl_optimize_canvas(scene->canvas) != 0) { - if (errno == ENOTSUP) { + if (errno == ENOSYS) { have_gl = false; } else { dmnsn_delete_scene(scene); -- cgit v1.2.3