[PATCH] D11353: [asan] Speed up ASan unit tests by turning off symbolication

Phabricator reviews at reviews.llvm.org
Mon Jul 20 08:04:11 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL242677: [asan] Speed up ASan unit tests by turning off symbolication (authored by kuba.brecka).

Changed prior to commit:
  http://reviews.llvm.org/D11353?vs=30157&id=30160#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11353

Files:
  compiler-rt/trunk/lib/asan/tests/asan_test_main.cc

Index: compiler-rt/trunk/lib/asan/tests/asan_test_main.cc
===================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test_main.cc
+++ compiler-rt/trunk/lib/asan/tests/asan_test_main.cc
@@ -12,6 +12,12 @@
 //===----------------------------------------------------------------------===//
 #include "asan_test_utils.h"
 
+// Default ASAN_OPTIONS for the unit tests. Let's turn symbolication off to
+// speed up testing (unit tests don't use it anyway).
+extern "C" const char* __asan_default_options() {
+  return "symbolize=false";
+}
+
 int main(int argc, char **argv) {
   testing::GTEST_FLAG(death_test_style) = "threadsafe";
   testing::InitGoogleTest(&argc, argv);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11353.30160.patch
Type: text/x-patch
Size: 719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150720/669a8faf/attachment.bin>


More information about the llvm-commits mailing list