Skip to content

Commit

Permalink
Skip NMODL pybind test on Apple Clang w/ASAN enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Jan 8, 2025
1 parent 1af3643 commit ff77e51
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/nmodl/transpiler/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,11 @@ set_tests_properties(Ode PROPERTIES ENVIRONMENT "PYTHONPATH=${NMODL_TEST_PYTHONP
cpp_cc_configure_sanitizers(TEST Ode PRELOAD)

if(NMODL_ENABLE_PYTHON_BINDINGS)
add_test(NAME Pybind COMMAND ${PYTHON_EXECUTABLE} -m pytest ${CMAKE_CURRENT_SOURCE_DIR}/pybind)
set_tests_properties(Pybind PROPERTIES ENVIRONMENT "PYTHONPATH=${NMODL_TEST_PYTHONPATH}")
cpp_cc_configure_sanitizers(TEST Pybind PRELOAD)
# Apple Clang and ASAN do not play along nicely with NMODL's Python bindings, so we skip these
# tests
if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND NRN_SANITIZERS))
add_test(NAME Pybind COMMAND ${PYTHON_EXECUTABLE} -m pytest ${CMAKE_CURRENT_SOURCE_DIR}/pybind)
set_tests_properties(Pybind PROPERTIES ENVIRONMENT "PYTHONPATH=${NMODL_TEST_PYTHONPATH}")
cpp_cc_configure_sanitizers(TEST Pybind PRELOAD)
endif()
endif()

0 comments on commit ff77e51

Please sign in to comment.