[libcxx-commits] [libcxxabi] c07903a - [libc++abi] Disable test with a leaks

Vitaly Buka via libcxx-commits libcxx-commits at lists.llvm.org
Thu Oct 26 21:49:12 PDT 2023


Author: Vitaly Buka
Date: 2023-10-26T21:48:56-07:00
New Revision: c07903aac7b9bc60d48f0381073285d79642cc3f

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

LOG: [libc++abi] Disable test with a leaks

Leak could be real, as the code terminates before freeing the memory.

Added: 
    

Modified: 
    libcxx/utils/libcxx/test/params.py
    libcxxabi/test/test_vector2.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py
index e34fd0387f4f5b3..65e8f029d71b43e 100644
--- a/libcxx/utils/libcxx/test/params.py
+++ b/libcxx/utils/libcxx/test/params.py
@@ -242,6 +242,7 @@ def getStdFlag(cfg, std):
                 AddFlag("-fsanitize=leaks")    if sanitizer == "Leaks" else None,
 
                 AddFeature("sanitizer-new-delete") if sanitizer in ["Address", "HWAddress", "Memory", "MemoryWithOrigins", "Thread"] else None,
+                AddFeature("lsan") if sanitizer in ["Address", "HWAddress", "Leaks"] else 
             ]
         )
     ),

diff  --git a/libcxxabi/test/test_vector2.pass.cpp b/libcxxabi/test/test_vector2.pass.cpp
index 3f04c3df7aca8bd..2acbca960f96560 100644
--- a/libcxxabi/test/test_vector2.pass.cpp
+++ b/libcxxabi/test/test_vector2.pass.cpp
@@ -6,6 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+// Reports leaks after https://github.com/llvm/llvm-project/pull/66285
+// UNSUPPORTED: lsan
+
 // UNSUPPORTED: no-exceptions
 
 #include "cxxabi.h"


        


More information about the libcxx-commits mailing list