diff options
author | kosak <kosak@google.com> | 2014-03-12 22:55:56 +0000 |
---|---|---|
committer | kosak <kosak@google.com> | 2014-03-12 22:55:56 +0000 |
commit | ffea2d604031a8c732cec8f8de9d9f9bcfbbcf70 (patch) | |
tree | 173f1b2d67378e24a82d2df3d7a0a2bab447c7dc /src | |
parent | c82282819c0f6fbd2bd025f2326f0a6b104c59b9 (diff) | |
download | googletest-ffea2d604031a8c732cec8f8de9d9f9bcfbbcf70.tar.gz googletest-ffea2d604031a8c732cec8f8de9d9f9bcfbbcf70.tar.bz2 googletest-ffea2d604031a8c732cec8f8de9d9f9bcfbbcf70.zip |
Add annotations to suppress ThreadSanitizer failures due to gunit/gmock printer.
Diffstat (limited to 'src')
-rw-r--r-- | src/gtest-printers.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gtest-printers.cc b/src/gtest-printers.cc index bb794eed..a2df412f 100644 --- a/src/gtest-printers.cc +++ b/src/gtest-printers.cc @@ -59,6 +59,7 @@ using ::std::ostream; // Prints a segment of bytes in the given object. GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ +GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ void PrintByteSegmentInObjectTo(const unsigned char* obj_bytes, size_t start, size_t count, ostream* os) { char text[5] = ""; @@ -257,6 +258,7 @@ void PrintTo(wchar_t wc, ostream* os) { template <typename CharType> GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ +GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ static void PrintCharsAsStringTo( const CharType* begin, size_t len, ostream* os) { const char* const kQuoteBegin = sizeof(CharType) == 1 ? "\"" : "L\""; @@ -280,6 +282,7 @@ static void PrintCharsAsStringTo( template <typename CharType> GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ +GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ static void UniversalPrintCharArray( const CharType* begin, size_t len, ostream* os) { // The code |