[compiler-rt] r261715 - [tests] Portability fixup for r261713.

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 23 17:28:51 PST 2016


Author: samsonov
Date: Tue Feb 23 19:28:51 2016
New Revision: 261715

URL: http://llvm.org/viewvc/llvm-project?rev=261715&view=rev
Log:
[tests] Portability fixup for r261713.

Modified:
    compiler-rt/trunk/lib/asan/tests/asan_str_test.cc

Modified: compiler-rt/trunk/lib/asan/tests/asan_str_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_str_test.cc?rev=261715&r1=261714&r2=261715&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_str_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_str_test.cc Tue Feb 23 19:28:51 2016
@@ -20,8 +20,18 @@
 static char global_string[] = "global";
 static size_t global_string_length = 6;
 
-const char kStackReadUnderflow[] = "READ.*underflows this variable";
-const char kStackReadOverflow[] = "READ.*overflows this variable";
+const char kStackReadUnderflow[] =
+#if !GTEST_USES_SIMPLE_RE
+    ASAN_PCRE_DOTALL
+    "READ.*"
+#endif
+    "underflows this variable";
+const char kStackReadOverflow[] =
+#if !GTEST_USES_SIMPLE_RE
+    ASAN_PCRE_DOTALL
+    "READ.*"
+#endif
+    "overflows this variable";
 
 namespace {
 enum class OOBKind {




More information about the llvm-commits mailing list