From b61b1405718d8504d09c0c515e7aca5c70815f8b Mon Sep 17 00:00:00 2001 From: tmadlener Date: Thu, 10 Oct 2024 17:28:26 +0200 Subject: [PATCH] Disable a few tests for UBSan on clang --- tests/CTestCustom.cmake | 12 ++++++++++++ tests/unittests/unittest.cpp | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/CTestCustom.cmake b/tests/CTestCustom.cmake index 4f7cec04c..51cb67445 100644 --- a/tests/CTestCustom.cmake +++ b/tests/CTestCustom.cmake @@ -99,4 +99,16 @@ if ((NOT "@FORCE_RUN_ALL_TESTS@" STREQUAL "ON") AND (NOT "@USE_SANITIZER@" STREQ ) endif() + if("@USE_SANITIZER@" MATCHES "Undefined" AND "@CMAKE_CXX_COMPILER_ID@" STREQUAL "Clang") + set(CTEST_CUSTOM_TESTS_IGNORE + ${CTEST_CUSTOM_TESTS_IGNORE} + + write_rntuple + read_rntuple + write_interface_rntuple + read_interface_rntuple + ) + + endif() + endif() diff --git a/tests/unittests/unittest.cpp b/tests/unittests/unittest.cpp index 3ce831a12..5f110ded8 100644 --- a/tests/unittests/unittest.cpp +++ b/tests/unittests/unittest.cpp @@ -1380,16 +1380,16 @@ TEST_CASE("ROOTWriter check consistency", "[ASAN-FAIL][UBSAN-FAIL][basics][root] #if PODIO_ENABLE_RNTUPLE -TEST_CASE("Relations after cloning with RNTuple", "[THREAD-FAIL][relations][basics]") { +TEST_CASE("Relations after cloning with RNTuple", "[THREAD-FAIL][UBSAN-FAIL][relations][basics]") { runRelationAfterCloneCheck( "unittests_relations_after_cloning_rntuple.root"); } -TEST_CASE("RNTupleWriter consistent frame contents", "[basics][root]") { +TEST_CASE("RNTupleWriter consistent frame contents", "[UBSAN-FAIL][basics][root]") { runConsistentFrameTest("unittests_frame_consistency_rntuple.root"); } -TEST_CASE("RNTupleWriter check consistency", "[basics][root]") { +TEST_CASE("RNTupleWriter check consistency", "[UBSAN-FAIL][basics][root]") { runCheckConsistencyTest("unittests_frame_check_consistency_rntuple.root"); }