summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/polystar.c2
-rw-r--r--test/polystar2.c2
-rwxr-xr-xtest/runtest.sh2
3 files changed, 5 insertions, 1 deletions
diff --git a/test/polystar.c b/test/polystar.c
index c71ba41..7ab6cdc 100644
--- a/test/polystar.c
+++ b/test/polystar.c
@@ -1,6 +1,8 @@
/* libnsfb ploygon plotter test program */
+#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199506L
+#endif
#include <stdio.h>
#include <stdbool.h>
diff --git a/test/polystar2.c b/test/polystar2.c
index afff5a0..164d429 100644
--- a/test/polystar2.c
+++ b/test/polystar2.c
@@ -1,6 +1,8 @@
/* libnsfb ploygon plotter test program */
+#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199506L
+#endif
#include <stdio.h>
#include <stdbool.h>
diff --git a/test/runtest.sh b/test/runtest.sh
index 5d131ab..2f484e6 100755
--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -2,7 +2,7 @@
TEST_PATH=$1
-TEST_FRONTEND=x
+TEST_FRONTEND=linux
${TEST_PATH}/test_frontend ${TEST_FRONTEND}
${TEST_PATH}/test_plottest ${TEST_FRONTEND}