[llvm-commits] [compiler-rt] r162984 - /compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_flags_test.cc

Alexey Samsonov samsonov at google.com
Fri Aug 31 03:15:44 PDT 2012


Author: samsonov
Date: Fri Aug 31 05:15:44 2012
New Revision: 162984

URL: http://llvm.org/viewvc/llvm-project?rev=162984&view=rev
Log:
[Sanitizer] Resolve fixme: break dependency of sanitizer_common tests on TSan RTL

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

Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_flags_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_flags_test.cc?rev=162984&r1=162983&r2=162984&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_flags_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_flags_test.cc Fri Aug 31 05:15:44 2012
@@ -14,9 +14,6 @@
 #include "sanitizer_common/sanitizer_flags.h"
 #include "gtest/gtest.h"
 
-#include "tsan_rtl.h"  // FIXME: break dependency from TSan runtime.
-using __tsan::ScopedInRtl;
-
 #include <string.h>
 
 namespace __sanitizer {
@@ -38,7 +35,6 @@
 }
 
 TEST(SanitizerCommon, BooleanFlags) {
-  ScopedInRtl in_rtl;
   TestFlag(true, "--flag_name", true);
   TestFlag(false, "flag_name", false);
   TestFlag(false, "--flag_name=1", true);
@@ -51,7 +47,6 @@
 }
 
 TEST(SanitizerCommon, IntFlags) {
-  ScopedInRtl in_rtl;
   TestFlag(-11, 0, -11);
   TestFlag(-11, "flag_name", 0);
   TestFlag(-11, "--flag_name=", 0);
@@ -60,7 +55,6 @@
 }
 
 TEST(SanitizerCommon, StrFlags) {
-  ScopedInRtl in_rtl;
   TestStrFlag("zzz", 0, "zzz");
   TestStrFlag("zzz", "flag_name", "");
   TestStrFlag("zzz", "--flag_name=", "");





More information about the llvm-commits mailing list