summaryrefslogtreecommitdiff
path: root/lib/asan/tests
diff options
context:
space:
mode:
authorAlex Shlyapnikov <alekseys@google.com>2017-04-20 20:54:19 +0000
committerAlex Shlyapnikov <alekseys@google.com>2017-04-20 20:54:19 +0000
commit4491af204031a352be69227e28142ed55a90c04d (patch)
tree547908b432787d67a92bcbd770b97437fe437d90 /lib/asan/tests
parentba4bcb3734311880844d4802a46333de9040d996 (diff)
Define a suppression for known leaks on pthread_exit call.
Summary: Refer to D32194 for the context. Reviewers: eugenis Subscribers: kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D32303 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@300886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/tests')
-rw-r--r--lib/asan/tests/asan_test_main.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/asan/tests/asan_test_main.cc b/lib/asan/tests/asan_test_main.cc
index 4b72f0aea..0c1b93c7f 100644
--- a/lib/asan/tests/asan_test_main.cc
+++ b/lib/asan/tests/asan_test_main.cc
@@ -22,13 +22,10 @@ extern "C" const char* __asan_default_options() {
// turn symbolization off to speed up testing, especially when not running
// with llvm-symbolizer but with atos.
return "symbolize=false:abort_on_error=0:log_to_syslog=0";
-#elif SANITIZER_PPC || defined(__thumb__)
+#elif SANITIZER_SUPPRESS_LEAK_ON_PTHREAD_EXIT
// On PowerPC and ARM Thumb, a couple tests involving pthread_exit fail due to
- // leaks detected by LSan. pthread_exit tries to perform unwinding that leads
- // to dlopen'ing libgcc_s.so. dlopen mallocs "libgcc_s.so" string which
- // confuses LSan, it fails to realize that this allocation happens in dynamic
- // linker and should be ignored. Symbolized leak report is required to define
- // a suppression for this known problem.
+ // leaks detected by LSan. Symbolized leak report is required to apply a
+ // suppression for this known problem.
return "";
#else
// Let's turn symbolization off to speed up testing (more than 3 times speedup