From c13fa1cf69393f163956bef3d8e95b1ab4f3a31f Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Mon, 15 Oct 2018 22:47:02 +0100
Subject: [PATCH] Unitialised variables in cell tests fix

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

diff --git a/tests/test125cells.c b/tests/test125cells.c
index 3d7d5458f1..944ed79368 100644
--- a/tests/test125cells.c
+++ b/tests/test125cells.c
@@ -891,8 +891,10 @@ int main(int argc, char *argv[]) {
   for (int i = 0; i < 125; ++i) clean_up(cells[i]);
   free(solution);
 
+#ifdef WITH_VECTORIZATION
   cache_clean(&runner.ci_cache);
   cache_clean(&runner.cj_cache);
+#endif
 
   return 0;
 }
diff --git a/tests/test27cells.c b/tests/test27cells.c
index 92a36d7dcd..ba98d91a42 100644
--- a/tests/test27cells.c
+++ b/tests/test27cells.c
@@ -616,8 +616,10 @@ int main(int argc, char *argv[]) {
   /* Clean things to make the sanitizer happy ... */
   for (int i = 0; i < 27; ++i) clean_up(cells[i]);
 
+#ifdef WITH_VECTORIZATION
   cache_clean(&runner.ci_cache);
   cache_clean(&runner.cj_cache);
+#endif
 
   return 0;
 }
-- 
GitLab