[clang] edd6ed3 - [NFC] Don't run clang/bindings/python/tests with msan

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 29 22:29:37 PDT 2020


Author: Vitaly Buka
Date: 2020-10-29T22:29:25-07:00
New Revision: edd6ed364151adf3f0eede3d6d22db1018bfd601

URL: https://github.com/llvm/llvm-project/commit/edd6ed364151adf3f0eede3d6d22db1018bfd601
DIFF: https://github.com/llvm/llvm-project/commit/edd6ed364151adf3f0eede3d6d22db1018bfd601.diff

LOG: [NFC] Don't run clang/bindings/python/tests with msan

Fixes check-all with LLVM_USE_SANITIZER=Memory

Added: 
    

Modified: 
    clang/bindings/python/tests/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/clang/bindings/python/tests/CMakeLists.txt b/clang/bindings/python/tests/CMakeLists.txt
index 3f58c4bde8e7..46dafa57dea1 100644
--- a/clang/bindings/python/tests/CMakeLists.txt
+++ b/clang/bindings/python/tests/CMakeLists.txt
@@ -15,14 +15,13 @@ if(NOT LLVM_ENABLE_PIC)
   set(RUN_PYTHON_TESTS FALSE)
 endif()
 
-# Do not try to run if libclang was built with ASan because
+# Do not try to run if libclang was built with ASan/MSan because
 # the sanitizer library will likely be loaded too late to perform
 # interception and will then fail.
 # We could use LD_PRELOAD/DYLD_INSERT_LIBRARIES but this isn't
 # portable so its easier just to not run the tests when building
 # with ASan.
-list(FIND LLVM_USE_SANITIZER "Address" LLVM_USE_ASAN_INDEX)
-if(NOT LLVM_USE_ASAN_INDEX EQUAL -1)
+if(LLVM_USE_SANITIZER MATCHES ".*(Memory|Address).*")
   set(RUN_PYTHON_TESTS FALSE)
 endif()
 


        


More information about the cfe-commits mailing list