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:
Nathan Moinvaziri 2024-01-02 15:38:55 -08:00 committed by Ivan Penkov
parent 8e125760dc
commit 446298620b

View file

@ -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;