From 0bc9432fb9293a7766e678b86fa0cae9642ab70f Mon Sep 17 00:00:00 2001
From: Axel Naumann <Axel.Naumann@cern.ch>
Date: Tue, 20 Sep 2022 14:17:28 +0200
Subject: [PATCH] [stressVector] Make test failure visible through exit code.

---
 test/stressVector.cxx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/test/stressVector.cxx b/test/stressVector.cxx
index 93cb47e2644..db925d44197 100644
--- a/test/stressVector.cxx
+++ b/test/stressVector.cxx
@@ -66,7 +66,7 @@
 using namespace ROOT::Math;
 
 
-
+bool gTestResultSuccess = true;
 
 class VectorTest {
 
@@ -107,6 +107,7 @@ public:
     std::cout.precision(16);
     std::cout << s1 << "\t" << s2 <<"\t" << s3 << "\n";
     std::cout << "Test " << name << " failed !!\n\n";
+    gTestResultSuccess = false;
     return -1;
   }
 
@@ -650,5 +651,9 @@ int main(int argc,const char *argv[]) {
 
   //tr.dump();
 
+  if (!gTestResultSuccess)
+    return 1;
+
+  return 0;
 }
 
-- 
GitLab