From 61a65f0488925973c489be1b80cf7e0615d80405 Mon Sep 17 00:00:00 2001 From: Sandro Wenzel Date: Mon, 24 Nov 2025 20:34:25 +0100 Subject: [PATCH 1/2] 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Detectors/TPC/base/test/testTPCCalDet.cxx b/Detectors/TPC/base/test/testTPCCalDet.cxx index b93e952084396..a5f917fcd522a 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,14 @@ 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 From c9ec3e32d8ea70c91e1befcc08dadd9ca4787c53 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Mon, 24 Nov 2025 19:38:33 +0000 Subject: [PATCH 2/2] Please consider the following formatting changes --- Detectors/TPC/base/test/testTPCCalDet.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/Detectors/TPC/base/test/testTPCCalDet.cxx b/Detectors/TPC/base/test/testTPCCalDet.cxx index a5f917fcd522a..fda38c2d03e91 100644 --- a/Detectors/TPC/base/test/testTPCCalDet.cxx +++ b/Detectors/TPC/base/test/testTPCCalDet.cxx @@ -353,6 +353,4 @@ BOOST_AUTO_TEST_CASE(CalDetStreamerTest) creator.loadIDCPadFlags(1731274461770); } - - } // namespace o2::tpc