From eb7d9dc246504f5caa89616e64208162912ce5dc Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Thu, 27 Apr 2017 10:29:03 +0100
Subject: [PATCH] Updated test27cells to pass the tests. Updated testVoronoi2D
 to be less verbose.

---
 tests/test27cells.c   | 4 ++++
 tests/testVoronoi2D.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/tests/test27cells.c b/tests/test27cells.c
index 82eb2465dd..2e7e9b63c9 100644
--- a/tests/test27cells.c
+++ b/tests/test27cells.c
@@ -404,11 +404,15 @@ int main(int argc, char *argv[]) {
   space.dim[1] = 3.;
   space.dim[2] = 3.;
 
+  struct hydro_props hp;
+  hp.h_max = FLT_MAX;
+
   struct engine engine;
   engine.s = &space;
   engine.time = 0.1f;
   engine.ti_current = 8;
   engine.max_active_bin = num_time_bins;
+  engine.hydro_properties = &hp;
 
   struct runner runner;
   runner.e = &engine;
diff --git a/tests/testVoronoi2D.c b/tests/testVoronoi2D.c
index 7a35961952..509d3ab699 100644
--- a/tests/testVoronoi2D.c
+++ b/tests/testVoronoi2D.c
@@ -107,8 +107,10 @@ int main() {
     Atot = 0.0f;
     /* print the cells to the stdout */
     for (i = 0; i < TESTVORONOI2D_NUMCELL; ++i) {
+#ifdef VORONOI_VERBOSE
       printf("Cell %i:\n", i);
       voronoi_print_cell(&cells[i]);
+#endif
       voronoi_cell_finalize(&cells[i]);
       Atot += cells[i].volume;
     }
@@ -185,8 +187,10 @@ int main() {
     Atot = 0.0f;
     /* print the cells to the stdout */
     for (i = 0; i < 100; ++i) {
+#ifdef VORONOI_VERBOSE
       printf("Cell %i:\n", i);
       voronoi_print_cell(&cells[i]);
+#endif
       voronoi_cell_finalize(&cells[i]);
       Atot += cells[i].volume;
     }
-- 
GitLab