Skip to content

Commit 0fb4692

Browse files
committed
Exercise CalArray<PadFlags> 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).
1 parent 72b9f51 commit 0fb4692

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Detectors/TPC/base/test/testTPCCalDet.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "TPCBase/CalDet.h"
2525
#include "TFile.h"
2626
#include "Framework/TypeTraits.h"
27+
#include "TPCBase/DeadChannelMapCreator.h"
2728

2829
namespace o2::tpc
2930
{
@@ -344,4 +345,12 @@ BOOST_AUTO_TEST_CASE(CalDetTypeTest)
344345
BOOST_CHECK(testDict == true);
345346
}
346347

348+
BOOST_AUTO_TEST_CASE(CalDetStreamerTest)
349+
{
350+
// simple code executing the TPC IDCPadFlags loading in a standalone env --> easy to valgrind
351+
o2::tpc::DeadChannelMapCreator creator{};
352+
creator.init("https://alice-ccdb.cern.ch");
353+
creator.loadIDCPadFlags(1731274461770);
354+
}
355+
347356
} // namespace o2::tpc

0 commit comments

Comments
 (0)