Skip to content

Commit 29cde88

Browse files
vitalybukamemfrob
authored andcommitted
[NFC] Don't run python binding tests with sanitizers
Almost any sanitizer can try to install interceptors.
1 parent 4c4a73c commit 29cde88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/bindings/python/tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ if(NOT LLVM_ENABLE_PIC)
1515
set(RUN_PYTHON_TESTS FALSE)
1616
endif()
1717

18-
# Do not try to run if libclang was built with ASan/MSan because
18+
# Do not try to run if libclang was built with sanitizers because
1919
# the sanitizer library will likely be loaded too late to perform
2020
# interception and will then fail.
2121
# We could use LD_PRELOAD/DYLD_INSERT_LIBRARIES but this isn't
2222
# portable so its easier just to not run the tests when building
2323
# with ASan.
24-
if(LLVM_USE_SANITIZER MATCHES ".*(Memory|Address).*")
24+
if(NOT LLVM_USE_SANITIZER STREQUAL "")
2525
set(RUN_PYTHON_TESTS FALSE)
2626
endif()
2727

0 commit comments

Comments
 (0)