Fix ContextDeathTest.X86BadFlags unit test on Mac OS X.

The assertion (context.context_flags & MD_CONTEXT_X86) in synth_minidump.cc
produces a different message on Mac OS X than other platforms. This patch
changes the ContextDeathTest.X86BadFlags test to handle both message patterns.

BUG=424
TEST=Verified ContextDeathTest.X86BadFlags on Windows, Linux and Mac OS X.
Review URL: http://breakpad.appspot.com/333001

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@894 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
benchan@chromium.org 2011-12-16 02:15:11 +00:00
parent a42704eccc
commit 25b886a7fd

View file

@ -150,7 +150,7 @@ TEST(ContextDeathTest, X86BadFlags) {
MDRawContextX86 raw;
raw.context_flags = 0;
ASSERT_DEATH(Context context(dump, raw);,
"context\\.context_flags & 0x[0-9a-f]+");
"context\\.context_flags & (0x[0-9a-f]+|MD_CONTEXT_X86)");
}
TEST(ContextDeathTest, X86BadEndianness) {