[Pixman] [PATCH] test: Fix fence-image-self-test on Mac

Pekka Paalanen ppaalanen at gmail.com
Fri Oct 16 05:18:27 PDT 2015


On Tue, 13 Oct 2015 13:35:59 +0200
Andrea Canciani <ranma42 at gmail.com> wrote:

> 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 at collabora.co.uk>
> ---
>  test/fence-image-self-test.c | 12 +++++++-----
>  test/utils.c                 |  6 +++---
>  2 files changed, 10 insertions(+), 8 deletions(-)

Pushed:
   7de61d8..9728241  master -> master

For the record, Linux man-page for mprotect does not mention SIGBUS at
all, so thanks for catching that.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/pixman/attachments/20151016/2a4928bf/attachment.sig>


More information about the Pixman mailing list