summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-30 21:14:36 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-30 21:14:36 -0500
commit4b9641002a7b0edac8d88762385315939d2ff753 (patch)
tree61a9912eae058cc9cee179b6b688476e8f60c889 /tests
parent802153469d8763ed0dfe58590cee91aac1c49246 (diff)
downloaddimension-4b9641002a7b0edac8d88762385315939d2ff753.tar.xz
Use ENOSYS rather than ENOTSUP.
Diffstat (limited to 'tests')
-rw-r--r--tests/libdimension/display-stubs.c2
-rw-r--r--tests/libdimension/render.c4
2 files changed, 4 insertions, 2 deletions
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 <errno.h>
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);