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

2015-10-16 Thread Pekka Paalanen
On Tue, 13 Oct 2015 13:35:59 +0200 Andrea Canciani 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 >

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

2015-10-13 Thread Andrea Canciani
On MacOS X an out-of-bounds access to an mmap-ed region typically results in a SIGBUS, but fence-image-self-test was only accepting a SIGSEGV as notification of invalid access. Fixes fence-image-self-test --- test/fence-image-self-test.c | 12 +++- test/utils.c | 6

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

2015-10-13 Thread Pekka Paalanen
On Tue, 13 Oct 2015 11:07:53 +0200 Andrea Canciani wrote: > On MacOS X an out-of-bounds access to an mmap-ed region typically > results in a SIGBUS, but fence-image-self-test was only accepting a > SIGSEGV as notification of invalid access. Hi, out-of-bounds may be true, but

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

2015-10-13 Thread Andrea Canciani
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

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

2015-10-13 Thread Pekka Paalanen
On Tue, 13 Oct 2015 13:41:29 +0200 Andrea Canciani wrote: > On Tue, Oct 13, 2015 at 11:39 AM, Pekka Paalanen > wrote: > > > On Tue, 13 Oct 2015 11:07:53 +0200 > > Andrea Canciani wrote: > > > > > On MacOS X an out-of-bounds access to