test_faulthandler: skip test_read_null() on AIX
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 3 Jul 2013 20:29:42 +0000 (22:29 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 3 Jul 2013 20:29:42 +0000 (22:29 +0200)
commit330426cfe268a3ccaaf2baa20e0d1d37b0312c40
tree912af0e093326cd7205d2eeab99105976b3c3a26
parentf4c47b5a35f399ae48a0bc816d5c705b57e8e342
test_faulthandler: skip test_read_null() on AIX

AIX maps the first page of memory at address zero as valid, read-only.  Reading
NULL is not a fault on AIX. This is utilized by IBM compiler optimizations.
One speculatively can indirect through a pointer which may be null without
first testing if null and defer the test before using the value.
Lib/test/test_faulthandler.py