Skip to content

Commit d5457e4

Browse files
authored
[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.
1 parent 8110af7 commit d5457e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/test/Index/crash-recovery-modules.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
// RUN: export LSAN_OPTIONS=detect_leaks=0
2+
13
// Clear out the module cache entirely, so we start from nothing.
24
// RUN: rm -rf %t
35

46
// Parse the file, such that building the module will cause Clang to crash.
57
// 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
68
// RUN: FileCheck < %t.err -check-prefix=CHECK-CRASH %s
7-
// CHECK-CRASH: crash-recovery-modules.m:16:9:{16:2-16:14}: fatal error: could not build module 'Crash'
9+
// CHECK-CRASH: crash-recovery-modules.m:[[@LINE+9]]:9:{[[@LINE+9]]:2-[[@LINE+9]]:14}: fatal error: could not build module 'Crash'
810

911
// Parse the file again, without crashing, to make sure that
1012
// subsequent parses do the right thing.

0 commit comments

Comments
 (0)