[clang] 47625fe - [clang-repl] Disable LSan in InterpreterExceptionTest.
Lang Hames via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 27 11:36:47 PDT 2023
Author: Lang Hames
Date: 2023-09-27T11:36:14-07:00
New Revision: 47625fea5e376082fca65d0ac644f07957605d86
URL: https://github.com/llvm/llvm-project/commit/47625fea5e376082fca65d0ac644f07957605d86
DIFF: https://github.com/llvm/llvm-project/commit/47625fea5e376082fca65d0ac644f07957605d86.diff
LOG: [clang-repl] Disable LSan in InterpreterExceptionTest.
Disabling LSan for this test until we can track down the leak described in
https://github.com/llvm/llvm-project/issues/67586.
Added:
Modified:
clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp b/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
index 8700f506d9b17d4..adff020d3a09887 100644
--- a/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
+++ b/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
@@ -29,6 +29,14 @@
#include "gmock/gmock.h"
#include "gtest/gtest.h"
+// Disable LSan for this test.
+// FIXME: Re-enable this once we track down the leak described in
+// https://llvm.org/github.com/llvm/llvm-project/issues/67586.
+#if LLVM_ADDRESS_SANITIZER_BUILD || LLVM_HWADDRESS_SANITIZER_BUILD
+#include <sanitizer/lsan_interface.h>
+LLVM_ATTRIBUTE_USED int __lsan_is_turned_off() { return 1; }
+#endif
+
using namespace clang;
namespace {
More information about the cfe-commits
mailing list