Blob Blame History Raw
From 30cbc0d44364586ac64a3ac0fd6641e338549bbe Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Tue, 10 Aug 2021 06:33:17 +0200
Subject: [PATCH] Adjust tests for s390x

---
 math/mathcore/test/stress/testGenVector.cxx | 2 +-
 test/stressMathCore.cxx                     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/math/mathcore/test/stress/testGenVector.cxx b/math/mathcore/test/stress/testGenVector.cxx
index 8da429c395..df9061c88e 100644
--- a/math/mathcore/test/stress/testGenVector.cxx
+++ b/math/mathcore/test/stress/testGenVector.cxx
@@ -79,7 +79,7 @@ TYPED_TEST_P(GenVectorTest, TestGenVectors)
    scale = this->fDim * 20;
    if (this->fDim == 3 && this->V2Name() == "RhoEtaPhiVector") scale *= 12; // for problem with RhoEtaPhi
    if (this->fDim == 4 && ( this->V2Name() == "PtEtaPhiMVector"  || this->V2Name() == "PxPyPzMVector")) {
-#if (defined(__arm__) || defined(__arm64__) || defined(__aarch64__))
+#if (defined(__arm__) || defined(__arm64__) || defined(__aarch64__) || defined(__s390x__))
       scale *= 1.E7;
 #else
       scale *= 10;
diff --git a/test/stressMathCore.cxx b/test/stressMathCore.cxx
index 4d4695a8a0..b6d2d2c9e7 100644
--- a/test/stressMathCore.cxx
+++ b/test/stressMathCore.cxx
@@ -1120,7 +1120,7 @@ int testVector(int ngen, bool testio=false) {
    scale = Dim*20;
    if (Dim==3 && VecType<V2>::name() == "RhoEtaPhiVector") scale *= 12; // for problem with RhoEtaPhi
    if (Dim==4 && ( VecType<V2>::name() == "PtEtaPhiMVector" || VecType<V2>::name() == "PxPyPzMVector")) {
-#if (defined(__arm__) || defined(__arm64__) || defined(__aarch64__))
+#if (defined(__arm__) || defined(__arm64__) || defined(__aarch64__) || defined(__s390x__))
       scale *= 1.E7;
 #else
       scale *= 10;
-- 
2.31.1