summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/libdimension/list.c3
-rw-r--r--tests/libdimension/polynomial.c3
-rw-r--r--tests/libdimension/prtree.c3
-rw-r--r--tests/libdimension/render.c4
4 files changed, 11 insertions, 2 deletions
diff --git a/tests/libdimension/list.c b/tests/libdimension/list.c
index 6a98fda..5301abf 100644
--- a/tests/libdimension/list.c
+++ b/tests/libdimension/list.c
@@ -40,6 +40,9 @@ dmnsn_comparator(const dmnsn_list_iterator *i, const dmnsn_list_iterator *j)
int
main()
{
+ /* Set the resilience low for tests */
+ dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
+
dmnsn_list *list = dmnsn_new_list(sizeof(dmnsn_item));
/* Fill up the list with random numbers */
diff --git a/tests/libdimension/polynomial.c b/tests/libdimension/polynomial.c
index 5093c94..b04adf7 100644
--- a/tests/libdimension/polynomial.c
+++ b/tests/libdimension/polynomial.c
@@ -28,6 +28,9 @@
int
main()
{
+ /* Set the resilience low for tests */
+ dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
+
double poly[6], x[5];
/* poly[] = (x + 1)*(x - 1.2345)*(x - 2.3456)*(x - 5)*(x - 100) */
poly[5] = 1.0;
diff --git a/tests/libdimension/prtree.c b/tests/libdimension/prtree.c
index ffb75bd..cf9d4fb 100644
--- a/tests/libdimension/prtree.c
+++ b/tests/libdimension/prtree.c
@@ -57,6 +57,9 @@ dmnsn_randomize_bounding_box(dmnsn_object *object)
int
main(void)
{
+ /* Set the resilience low for tests */
+ dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
+
const size_t nobjects = 128;
dmnsn_scene *scene = dmnsn_new_scene();
diff --git a/tests/libdimension/render.c b/tests/libdimension/render.c
index 136866e..aace9af 100644
--- a/tests/libdimension/render.c
+++ b/tests/libdimension/render.c
@@ -204,8 +204,6 @@ dmnsn_new_test_scene(void)
int
main(void)
{
- bool have_png = true, have_gl = true;
-
/* Set the resilience low for tests */
dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
@@ -213,6 +211,7 @@ main(void)
dmnsn_scene *scene = dmnsn_new_test_scene();
/* Optimize the canvas for PNG export */
+ bool have_png = true;
errno = 0;
if (dmnsn_png_optimize_canvas(scene->canvas) != 0) {
if (errno == ENOSYS) {
@@ -225,6 +224,7 @@ main(void)
}
/* Optimize the canvas for GL drawing */
+ bool have_gl = true;
errno = 0;
if (dmnsn_gl_optimize_canvas(scene->canvas) != 0) {
if (errno == ENOSYS) {