[clang] d5457e4 - [NFC][Index] Disable LSAN on crash recovery tests (#124035)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 22 16:52:13 PST 2025
Author: Vitaly Buka
Date: 2025-01-22T16:52:09-08:00
New Revision: d5457e4c1619e5dbeefd49841e284cbc24d35cb4
URL: https://github.com/llvm/llvm-project/commit/d5457e4c1619e5dbeefd49841e284cbc24d35cb4
DIFF: https://github.com/llvm/llvm-project/commit/d5457e4c1619e5dbeefd49841e284cbc24d35cb4.diff
LOG: [NFC][Index] Disable LSAN on crash recovery tests (#124035)
Avoiding leaks in such cases is very hard.
There are similar suppression in other Index tests.
Added:
Modified:
clang/test/Index/crash-recovery-modules.m
Removed:
################################################################################
diff --git a/clang/test/Index/crash-recovery-modules.m b/clang/test/Index/crash-recovery-modules.m
index 00020e0e8162c9..16cf4b396b47a7 100644
--- a/clang/test/Index/crash-recovery-modules.m
+++ b/clang/test/Index/crash-recovery-modules.m
@@ -1,10 +1,12 @@
+// RUN: export LSAN_OPTIONS=detect_leaks=0
+
// Clear out the module cache entirely, so we start from nothing.
// RUN: rm -rf %t
// Parse the file, such that building the module will cause Clang to crash.
// RUN: env CINDEXTEST_FAILONERROR=1 not c-index-test -test-load-source all -fmodules -fmodules-cache-path=%t -Xclang -fdisable-module-hash -I %S/Inputs/Headers -DCRASH %s > /dev/null 2> %t.err
// RUN: FileCheck < %t.err -check-prefix=CHECK-CRASH %s
-// CHECK-CRASH: crash-recovery-modules.m:16:9:{16:2-16:14}: fatal error: could not build module 'Crash'
+// CHECK-CRASH: crash-recovery-modules.m:[[@LINE+9]]:9:{[[@LINE+9]]:2-[[@LINE+9]]:14}: fatal error: could not build module 'Crash'
// Parse the file again, without crashing, to make sure that
// subsequent parses do the right thing.
More information about the cfe-commits
mailing list