[tests] Portability fixup for r261713.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 24 Feb 2016 01:28:51 +0000 (01:28 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 24 Feb 2016 01:28:51 +0000 (01:28 +0000)
llvm-svn: 261715

compiler-rt/lib/asan/tests/asan_str_test.cc

index 45005ef..dd75587 100644 (file)
 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 {