d22cdf6
From 8b7369a527aa52204e1ce529c8cb206cfee4c61b Mon Sep 17 00:00:00 2001
d22cdf6
From: Mattias Ellert <mattias.ellert@physics.uu.se>
d22cdf6
Date: Fri, 17 Nov 2023 16:18:12 +0100
d22cdf6
Subject: [PATCH] Disable tests that don't compile with old gtest (EPEL 8)
d22cdf6
d22cdf6
---
d22cdf6
 core/metacling/test/TClingLoadUnloadFileTests.cxx | 2 ++
d22cdf6
 roofit/histfactory/test/testHistFactory.cxx       | 2 ++
d22cdf6
 roofit/roofitcore/test/testRooProdPdf.cxx         | 2 ++
d22cdf6
 roofit/roofitcore/test/testTestStatistics.cxx     | 2 ++
d22cdf6
 4 files changed, 8 insertions(+)
d22cdf6
d22cdf6
diff --git a/core/metacling/test/TClingLoadUnloadFileTests.cxx b/core/metacling/test/TClingLoadUnloadFileTests.cxx
d22cdf6
index 7f97f3f441..d1b7a65fbc 100644
d22cdf6
--- a/core/metacling/test/TClingLoadUnloadFileTests.cxx
d22cdf6
+++ b/core/metacling/test/TClingLoadUnloadFileTests.cxx
d22cdf6
@@ -73,6 +73,7 @@ void remove_n_library_artifacts(const std::string &basename, unsigned int n)
d22cdf6
    }
d22cdf6
 }
d22cdf6
 
d22cdf6
+/*
d22cdf6
 TEST(TClingLoadUnloadFile, ConcurrentLoadUnloadSameLib)
d22cdf6
 {
d22cdf6
    GTEST_SKIP() << "fails sporadically, see "
d22cdf6
@@ -125,3 +126,4 @@ TEST(TClingLoadUnloadFile, ConcurrentLoadUnloadOneLibPerThread)
d22cdf6
 
d22cdf6
    remove_n_library_artifacts(basename, n_libraries);
d22cdf6
 }
d22cdf6
+*/
59989ef
diff --git a/roofit/histfactory/test/testHistFactory.cxx b/roofit/histfactory/test/testHistFactory.cxx
59989ef
index 7553ba4e4a..fefdca8e97 100644
59989ef
--- a/roofit/histfactory/test/testHistFactory.cxx
59989ef
+++ b/roofit/histfactory/test/testHistFactory.cxx
59989ef
@@ -752,6 +752,7 @@ std::string getNameFromInfo(testing::TestParamInfo<HFFixture::ParamType> const &
59989ef
    return getName(paramInfo.param, false);
59989ef
 }
59989ef
 
59989ef
+/*
59989ef
 INSTANTIATE_TEST_SUITE_P(
59989ef
    HistFactory, HFFixture,
59989ef
    testing::Combine(testing::Values(MakeModelMode::OverallSyst, MakeModelMode::HistoSyst, MakeModelMode::StatSyst,
59989ef
@@ -784,3 +785,4 @@ INSTANTIATE_TEST_SUITE_P(HistFactoryCodeGen, HFFixtureFit,
59989ef
                                           testing::Values(RooFit::EvalBackend::Codegen())),
59989ef
                          getNameFromInfo);
59989ef
 #endif
59989ef
+*/
59989ef
diff --git a/roofit/roofitcore/test/testRooProdPdf.cxx b/roofit/roofitcore/test/testRooProdPdf.cxx
59989ef
index 34fb559cd1..09734f5c5d 100644
59989ef
--- a/roofit/roofitcore/test/testRooProdPdf.cxx
59989ef
+++ b/roofit/roofitcore/test/testRooProdPdf.cxx
59989ef
@@ -64,6 +64,7 @@ TEST_P(TestProdPdf, CachingOpt)
59989ef
       << "b=" << b.getVal() << " +- " << b.getError() << " doesn't match truth value with O" << _optimize << ".";
59989ef
 }
59989ef
 
59989ef
+/*
59989ef
 INSTANTIATE_TEST_SUITE_P(RooProdPdf, TestProdPdf,
59989ef
                          testing::Combine(testing::Values(0, 1, 2),
59989ef
                                           testing::Values(ROOFIT_EVAL_BACKENDS)),
59989ef
@@ -72,6 +73,7 @@ INSTANTIATE_TEST_SUITE_P(RooProdPdf, TestProdPdf,
59989ef
                             ss << "opt" << std::get<0>(paramInfo.param) << std::get<1>(paramInfo.param).name();
59989ef
                             return ss.str();
59989ef
                          });
59989ef
+*/
59989ef
 
59989ef
 TEST(RooProdPdf, TestGetPartIntList)
59989ef
 {
59989ef
diff --git a/roofit/roofitcore/test/testTestStatistics.cxx b/roofit/roofitcore/test/testTestStatistics.cxx
59989ef
index 3099d82060..5846353043 100644
59989ef
--- a/roofit/roofitcore/test/testTestStatistics.cxx
59989ef
+++ b/roofit/roofitcore/test/testTestStatistics.cxx
59989ef
@@ -585,6 +585,7 @@ INSTANTIATE_TEST_SUITE_P(RooNLLVar, TestStatisticTest, testing::Values(ROOFIT_EV
59989ef
                             return ss.str();
59989ef
                          });
59989ef
 
59989ef
+/*
59989ef
 INSTANTIATE_TEST_SUITE_P(RooNLLVar, OffsetBinTest,
59989ef
                          testing::Combine(testing::Values(ROOFIT_EVAL_BACKENDS), // EvalBackend
59989ef
                                           testing::Values(false, true),   // unbinned or binned
59989ef
@@ -622,3 +623,4 @@ INSTANTIATE_TEST_SUITE_P(RooNLLVarBinnedL, OffsetBinTest,
59989ef
                             ss << (std::get<5>(paramInfo.param) ? "BinnedL" : "");
59989ef
                             return ss.str();
59989ef
                          });
59989ef
+*/