Disable ContextDeathTest on Windows due to regex support.
Windows doesn't have posix regex support. This will disable these tests so long as Google's ABSL library is not also found. Change-Id: Ie6f96d5ea74b80b6128c2f1ec3ed54fcfaa17f47 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5160533 Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
This commit is contained in:
parent
8e125760dc
commit
446298620b
1 changed files with 10 additions and 0 deletions
|
@ -147,7 +147,12 @@ TEST(Context, ARM) {
|
|||
== 0);
|
||||
}
|
||||
|
||||
#if GTEST_OS_WINDOWS && !GTEST_HAS_ABSL
|
||||
// GTest on Windows does not support complex regular expressions.
|
||||
TEST(ContextDeathTest, DISABLED_X86BadFlags) {
|
||||
#else
|
||||
TEST(ContextDeathTest, X86BadFlags) {
|
||||
#endif
|
||||
Dump dump(0, kLittleEndian);
|
||||
MDRawContextX86 raw;
|
||||
raw.context_flags = MD_CONTEXT_AMD64;
|
||||
|
@ -155,7 +160,12 @@ TEST(ContextDeathTest, X86BadFlags) {
|
|||
"context\\.context_flags & (0x[0-9a-f]+|MD_CONTEXT_X86)");
|
||||
}
|
||||
|
||||
#if GTEST_OS_WINDOWS && !GTEST_HAS_ABSL
|
||||
// GTest on Windows does not support complex regular expressions.
|
||||
TEST(ContextDeathTest, DISABLED_X86BadEndianness) {
|
||||
#else
|
||||
TEST(ContextDeathTest, X86BadEndianness) {
|
||||
#endif
|
||||
Dump dump(0, kBigEndian);
|
||||
MDRawContextX86 raw;
|
||||
raw.context_flags = MD_CONTEXT_X86;
|
||||
|
|
Loading…
Reference in a new issue