summaryrefslogtreecommitdiff
path: root/lib/asan/tests
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2016-02-24 01:28:51 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2016-02-24 01:28:51 +0000
commitdb3c671359990409f37dc8ce31955af804078e47 (patch)
tree04782fd5683691aceee3e9b5e55dde0f84e1705e /lib/asan/tests
parent49fe1d84e0ba36c0cbd93ce460f9542601869c89 (diff)
[tests] Portability fixup for r261713.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/tests')
-rw-r--r--lib/asan/tests/asan_str_test.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/asan/tests/asan_str_test.cc b/lib/asan/tests/asan_str_test.cc
index 45005ef6b..dd755875e 100644
--- a/lib/asan/tests/asan_str_test.cc
+++ b/lib/asan/tests/asan_str_test.cc
@@ -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 {