Skip to content

Commit

Permalink
Disable a few tests for UBSan on clang
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Oct 10, 2024
1 parent c4a2f07 commit b61b140
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions tests/CTestCustom.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
6 changes: 3 additions & 3 deletions tests/unittests/unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<podio::RNTupleReader, podio::RNTupleWriter>(
"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<podio::RNTupleWriter>("unittests_frame_consistency_rntuple.root");
}

TEST_CASE("RNTupleWriter check consistency", "[basics][root]") {
TEST_CASE("RNTupleWriter check consistency", "[UBSAN-FAIL][basics][root]") {
runCheckConsistencyTest<podio::RNTupleWriter>("unittests_frame_check_consistency_rntuple.root");
}

Expand Down

0 comments on commit b61b140

Please sign in to comment.