mirror of
https://github.com/yuzu-emu/breakpad
synced 2024-11-24 09:08:11 +00:00
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:
parent
a42704eccc
commit
25b886a7fd
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue