From 96254626e5b17e676c2648ae96da5374d72d1e12 Mon Sep 17 00:00:00 2001
From: Justin Carpentier <justin.carpentier@inria.fr>
Date: Fri, 13 Dec 2019 15:15:21 +0100
Subject: [PATCH] test/capsule: lower the number of tests in Debug mode

---
 test/capsule_capsule.cpp | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/test/capsule_capsule.cpp b/test/capsule_capsule.cpp
index d59784e5..89cb9f00 100644
--- a/test/capsule_capsule.cpp
+++ b/test/capsule_capsule.cpp
@@ -66,7 +66,11 @@ BOOST_AUTO_TEST_CASE(collision_capsule_capsule_trivial)
   CollisionGeometryPtr_t s1 (new Sphere (radius));
   CollisionGeometryPtr_t s2 (new Sphere (radius));
 
-  int num_tests = 1e6;
+  #ifndef NDEBUG
+    int num_tests = 1e3;
+  #else
+    int num_tests = 1e6;
+  #endif
   
   Transform3f tf1;
   Transform3f tf2;
@@ -106,8 +110,11 @@ BOOST_AUTO_TEST_CASE(collision_capsule_capsule_aligned)
   
   CollisionGeometryPtr_t c1 (new Capsule (radius, length));
   CollisionGeometryPtr_t c2 (new Capsule (radius, length));
-
+#ifndef NDEBUG
+  int num_tests = 1e3;
+#else
   int num_tests = 1e6;
+#endif
   
   Transform3f tf1;
   Transform3f tf2;
-- 
GitLab