From 360d8172ca449235a2253d96aaa8edeb1615b295 Mon Sep 17 00:00:00 2001
From: Danilo Piparo <danilo.piparo@cern.ch>
Date: Thu, 24 Aug 2017 08:15:21 +0200
Subject: [PATCH] Fix GradientUnit test for no-imt builds

---
 math/mathcore/test/testGradient.cxx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/math/mathcore/test/testGradient.cxx b/math/mathcore/test/testGradient.cxx
index 5d9b405fa1a..169455c59d6 100644
--- a/math/mathcore/test/testGradient.cxx
+++ b/math/mathcore/test/testGradient.cxx
@@ -285,9 +285,17 @@ protected:
 
 // Types used by Google Test to instantiate the tests.
 #ifdef R__HAS_VECCORE
+#  ifdef R__USE_IMT
 typedef ::testing::Types<ScalarMultithread, VectorialSerial, VectorialMultithread> TestTypes;
+#  else
+typedef ::testing::Types<ScalarSerial, VectorialSerial, VectorialMultithread> TestTypes;
+#  endif
 #else
-typedef ::testing::Types<ScalarMultithread> TestTypes;
+#  ifdef R__USE_IMT
+typedef ::testing::Types<ScalarSerial> TestTypes;
+#  else
+typedef ::testing::Types<ScalarSerial> TestTypes;
+#  endif
 #endif
 
 TYPED_TEST_CASE(Chi2GradientTest, TestTypes);
-- 
GitLab