diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2016-02-24 01:28:51 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2016-02-24 01:28:51 +0000 |
commit | ee7023f79af7db796bc6de5f095a84336d665aa4 (patch) | |
tree | 7d2a3783f2bb8ca73164238123bdf89d34b4b92e | |
parent | 09f3c99a867a4ac51823bf36238857e0b3101be8 (diff) | |
download | bcm5719-llvm-ee7023f79af7db796bc6de5f095a84336d665aa4.tar.gz bcm5719-llvm-ee7023f79af7db796bc6de5f095a84336d665aa4.zip |
[tests] Portability fixup for r261713.
llvm-svn: 261715
-rw-r--r-- | compiler-rt/lib/asan/tests/asan_str_test.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_str_test.cc b/compiler-rt/lib/asan/tests/asan_str_test.cc index 45005ef6b5f..dd755875e74 100644 --- a/compiler-rt/lib/asan/tests/asan_str_test.cc +++ b/compiler-rt/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 { |