[PATCH] [ASan] Fix leak tests on 64-bit targets other than x86-64 (take two)

Jay Foad jay.foad at gmail.com
Mon Nov 24 15:24:47 PST 2014


Hi kcc, samsonov, earthdok,

First, remove lit configuration that sets ASAN_OPTIONS to detect_leaks=1
because this is already the default when leak detection is supported.
This removes a bit of duplication between various lit.cfg files.

Second, add a new feature 'leak-detection' if we're targetting x86_64
(not i386) on Linux.

Third, change a couple of tests that need leak detection to require the
new 'leak-detection' feature.

http://reviews.llvm.org/D6396

Files:
  test/asan/TestCases/Linux/coverage-and-lsan.cc
  test/asan/TestCases/Linux/leak.cc
  test/asan/Unit/lit.site.cfg.in
  test/asan/lit.cfg
  test/lsan/lit.common.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6396.16587.patch
Type: text/x-patch
Size: 2484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141124/4ff1107a/attachment.bin>


More information about the llvm-commits mailing list