Fixed tst_selftests on OSX 10.7
authorRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 8 Feb 2012 04:06:18 +0000 (14:06 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Feb 2012 02:31:08 +0000 (03:31 +0100)
commit931f4501a6f5fb77c9bd9f48b63a8ee88cba4355
treebf7bd1c6c59f88debb498383c7f20cfb44a3ed35
parent0efb8a7ee3ef3ca37760ecf1972c0f2bc5ae2846
Fixed tst_selftests on OSX 10.7

Our OSX 10.7 test machines send a SIGILL rather than a SIGSEGV to a
process which attempts to dereference a null pointer.

Change the "crashes" test to dereference an invalid pointer with a
value slightly greater than 0 so that we get the same crash behavior on
all (unix) platforms.

Change-Id: I700a2c7d654a9468af5e5996010a258695ed2ae5
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
tests/auto/testlib/selftests/crashes/tst_crashes.cpp