summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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);