[compiler-rt] r206955 - [asan] disable lsan back. :( -- It appears that quite a few lit tests have leaks and they were not covered by out buildbot

Kostya Serebryany kcc at google.com
Wed Apr 23 01:15:17 PDT 2014


Author: kcc
Date: Wed Apr 23 03:15:16 2014
New Revision: 206955

URL: http://llvm.org/viewvc/llvm-project?rev=206955&view=rev
Log:
[asan] disable lsan back. :(  -- It appears that quite a few lit tests have leaks and they were not covered by out buildbot

Modified:
    compiler-rt/trunk/lib/asan/asan_rtl.cc
    compiler-rt/trunk/test/asan/TestCases/Linux/leak.cc

Modified: compiler-rt/trunk/lib/asan/asan_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_rtl.cc?rev=206955&r1=206954&r2=206955&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_rtl.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_rtl.cc Wed Apr 23 03:15:16 2014
@@ -230,7 +230,7 @@ static void ParseFlagsFromString(Flags *
 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;

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/leak.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/leak.cc?rev=206955&r1=206954&r2=206955&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/leak.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/leak.cc Wed Apr 23 03:15:16 2014
@@ -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 <stdio.h>
 int *t;





More information about the llvm-commits mailing list