Skip to content

Commit

Permalink
Disable Ode test as well if AppleClang + sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Jan 15, 2025
1 parent 6d2bf7d commit 65db3e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/nmodl/transpiler/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,11 @@ endif()
# =============================================================================
# pybind11 tests
# =============================================================================
add_test(NAME Ode COMMAND ${PYTHON_EXECUTABLE} -m pytest ${CMAKE_CURRENT_SOURCE_DIR}/ode)
set_tests_properties(Ode PROPERTIES ENVIRONMENT "PYTHONPATH=${NMODL_TEST_PYTHONPATH}")
cpp_cc_configure_sanitizers(TEST Ode PRELOAD)
if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND NRN_SANITIZERS))
add_test(NAME Ode COMMAND ${PYTHON_EXECUTABLE} -m pytest ${CMAKE_CURRENT_SOURCE_DIR}/ode)
set_tests_properties(Ode PROPERTIES ENVIRONMENT "PYTHONPATH=${NMODL_TEST_PYTHONPATH}")
cpp_cc_configure_sanitizers(TEST Ode PRELOAD)
endif()

if(NMODL_ENABLE_PYTHON_BINDINGS)
# Apple Clang and ASAN do not play along nicely with NMODL's Python bindings, so we skip these
Expand Down

0 comments on commit 65db3e1

Please sign in to comment.