From 6f5e978a4762260c4bcf09e6adf4094859c70ffb Mon Sep 17 00:00:00 2001 From: Sandro Wenzel Date: Mon, 24 Nov 2025 20:34:25 +0100 Subject: [PATCH] Exercise CalArray loading in a TPC unit test This makes it easy to valgrind the process. It seems that despite the custom streamer, there are still sporadic segfaults when exercising DeadChannelMapCreator::loadIDCPadFlags (at least on ARM64). --- Detectors/TPC/base/test/testTPCCalDet.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Detectors/TPC/base/test/testTPCCalDet.cxx b/Detectors/TPC/base/test/testTPCCalDet.cxx index b93e952084396..fda38c2d03e91 100644 --- a/Detectors/TPC/base/test/testTPCCalDet.cxx +++ b/Detectors/TPC/base/test/testTPCCalDet.cxx @@ -24,6 +24,7 @@ #include "TPCBase/CalDet.h" #include "TFile.h" #include "Framework/TypeTraits.h" +#include "TPCBase/DeadChannelMapCreator.h" namespace o2::tpc { @@ -344,4 +345,12 @@ BOOST_AUTO_TEST_CASE(CalDetTypeTest) BOOST_CHECK(testDict == true); } +BOOST_AUTO_TEST_CASE(CalDetStreamerTest) +{ + // simple code executing the TPC IDCPadFlags loading in a standalone env --> easy to valgrind + o2::tpc::DeadChannelMapCreator creator{}; + creator.init("https://alice-ccdb.cern.ch"); + creator.loadIDCPadFlags(1731274461770); +} + } // namespace o2::tpc