Fix some compiler errors in exception_handler_unittest by casting like crazy
R=digit at https://breakpad.appspot.com/483002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1072 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
ff8cad8ae6
commit
f9a63cb164
1 changed files with 4 additions and 2 deletions
|
@ -338,8 +338,10 @@ TEST(ExceptionHandlerTest, RedeliveryOnBadSignalHandlerFlag) {
|
||||||
// Then re-install the current one with 'signal', this loses the
|
// Then re-install the current one with 'signal', this loses the
|
||||||
// SA_SIGINFO flag associated with the Breakpad handler.
|
// SA_SIGINFO flag associated with the Breakpad handler.
|
||||||
sighandler_t old_handler = signal(SIGSEGV, SIG_DFL);
|
sighandler_t old_handler = signal(SIGSEGV, SIG_DFL);
|
||||||
ASSERT_NE(old_handler, SIG_ERR);
|
ASSERT_NE(reinterpret_cast<void*>(old_handler),
|
||||||
ASSERT_NE(signal(SIGSEGV, old_handler), SIG_ERR);
|
reinterpret_cast<void*>(SIG_ERR));
|
||||||
|
ASSERT_NE(reinterpret_cast<void*>(signal(SIGSEGV, old_handler)),
|
||||||
|
reinterpret_cast<void*>(SIG_ERR));
|
||||||
|
|
||||||
// Crash with the exception handler in scope.
|
// Crash with the exception handler in scope.
|
||||||
*reinterpret_cast<volatile int*>(NULL) = 0;
|
*reinterpret_cast<volatile int*>(NULL) = 0;
|
||||||
|
|
Loading…
Reference in a new issue