[compiler-rt] r245363 - [Sanitizer] Initialize common flags to default values in unit tests.

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 14:54:32 PDT 2015


Author: samsonov
Date: Tue Aug 18 16:54:32 2015
New Revision: 245363

URL: http://llvm.org/viewvc/llvm-project?rev=245363&view=rev
Log:
[Sanitizer] Initialize common flags to default values in unit tests.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_test_main.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_test_main.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_test_main.cc?rev=245363&r1=245362&r2=245363&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_test_main.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_test_main.cc Tue Aug 18 16:54:32 2015
@@ -11,6 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 #include "gtest/gtest.h"
+#include "sanitizer_common/sanitizer_flags.h"
 
 const char *argv0;
 
@@ -18,5 +19,6 @@ int main(int argc, char **argv) {
   argv0 = argv[0];
   testing::GTEST_FLAG(death_test_style) = "threadsafe";
   testing::InitGoogleTest(&argc, argv);
+  SetCommonFlagsDefaults();
   return RUN_ALL_TESTS();
 }




More information about the llvm-commits mailing list