test: Fix fence-image-self-test on Mac
authorAndrea Canciani <ranma42@gmail.com>
Tue, 13 Oct 2015 11:35:59 +0000 (13:35 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 16 Oct 2015 12:05:02 +0000 (15:05 +0300)
commit9728241bd098bc4260e6cd83997dfecc64adc356
treef0793b65c7743a226efbcaf4ae73720b5f91a30d
parent7de61d8d14e84623b6fa46506eb74f938287f536
test: Fix fence-image-self-test on Mac

On MacOS X, according to the manpage of mprotect(), "When a program
violates the protections of a page, it gets a SIGBUS or SIGSEGV
signal.", but fence-image-self-test was only accepting a SIGSEGV as
notification of invalid access.

Fixes fence-image-self-test

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
test/fence-image-self-test.c
test/utils.c