Fix failing allow_user_segv.cc test on OS X 10.10
authorKuba Brecka <kuba.brecka@gmail.com>
Wed, 5 Nov 2014 18:58:41 +0000 (18:58 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Wed, 5 Nov 2014 18:58:41 +0000 (18:58 +0000)
commitfe4e7c17165dd0ebd80a78023598d442911f0495
treef756c6a3a01b7ce9c99cb182ce7d80869149700f
parent0078cea79251768a02f9ea5a9a8db1d0991ddb17
Fix failing allow_user_segv.cc test on OS X 10.10

The current ASan testcase Posix/allow_user_segv.cc expects SIGBUS to be triggered on 32-bit Darwin. This has apparently changed on 10.10 to trigger SIGSEGV instead, just as on 64-bit. Let's just install handlers for both SIGSEGV and SIGBUS instead of #ifdef'ing.

Reviewed at http://reviews.llvm.org/D6121

llvm-svn: 221381
compiler-rt/test/asan/TestCases/Posix/allow_user_segv.cc