From 8cd3d27879c58a1140fdc30de460214d541d00a8 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Wed, 23 Apr 2014 08:15:16 +0000 Subject: [PATCH] [asan] disable lsan back. :( -- It appears that quite a few lit tests have leaks and they were not covered by out buildbot llvm-svn: 206955 --- compiler-rt/lib/asan/asan_rtl.cc | 2 +- compiler-rt/test/asan/TestCases/Linux/leak.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/asan/asan_rtl.cc b/compiler-rt/lib/asan/asan_rtl.cc index b9e375b889ce..2bac66907c93 100644 --- a/compiler-rt/lib/asan/asan_rtl.cc +++ b/compiler-rt/lib/asan/asan_rtl.cc @@ -230,7 +230,7 @@ static void ParseFlagsFromString(Flags *f, const char *str) { void InitializeFlags(Flags *f, const char *env) { CommonFlags *cf = common_flags(); SetCommonFlagsDefaults(cf); - cf->detect_leaks = CAN_SANITIZE_LEAKS; + cf->detect_leaks = false; // CAN_SANITIZE_LEAKS; cf->external_symbolizer_path = GetEnv("ASAN_SYMBOLIZER_PATH"); cf->malloc_context_size = kDefaultMallocContextSize; cf->intercept_tls_get_addr = true; diff --git a/compiler-rt/test/asan/TestCases/Linux/leak.cc b/compiler-rt/test/asan/TestCases/Linux/leak.cc index 42ee84b9c381..85d55c3cbdbf 100644 --- a/compiler-rt/test/asan/TestCases/Linux/leak.cc +++ b/compiler-rt/test/asan/TestCases/Linux/leak.cc @@ -3,7 +3,7 @@ // // RUN: %clangxx_asan %s -o %t // RUN: ASAN_OPTIONS=detect_leaks=1 not %t 2>&1 | FileCheck %s -// RUN: not %t 2>&1 | FileCheck %s +// RUN: ASAN_OPTIONS="" %t // RUN: ASAN_OPTIONS=detect_leaks=0 %t #include int *t;