Blob Blame History Raw
From ba0dc65e558fd916dbe18f8dbe8208a3be932c25 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
Date: Mon, 28 Mar 2022 09:20:18 +0200
Subject: [PATCH] Ignore warnings about RooNaNPacker not being implemented for
 big endian

This warning is triggered in many tests, so it makes sense to put it
in the default ignored set.
---
 core/testsupport/src/TestSupport.cxx | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/core/testsupport/src/TestSupport.cxx b/core/testsupport/src/TestSupport.cxx
index 259ab4e09c..79cd476950 100644
--- a/core/testsupport/src/TestSupport.cxx
+++ b/core/testsupport/src/TestSupport.cxx
@@ -73,6 +73,13 @@ static struct ForbidDiagnostics {
         return;
       }
 
+      // FIXME: RooNaNPacker warns about not being implemented for big endian
+      if (level == kWarning
+	  && strcmp(msg, "Fast recovery from undefined function values only implemented for little-endian machines. If necessary, request an extension of functionality on https://root.cern") == 0) {
+        std::cerr << "Warning in " << location << " " << msg << std::endl;
+        return;
+      }
+
       FAIL() << "Received unexpected diagnostic of severity "
          << level
          << " at '" << location << "' reading '" << msg << "'.\n"
-- 
2.42.0