]> granicus.if.org Git - python/commit
(Merge 3.3) test_faulthandler: skip test_read_null() on AIX
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 3 Jul 2013 20:35:39 +0000 (22:35 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 3 Jul 2013 20:35:39 +0000 (22:35 +0200)
commit647d1e1acd5e2b73e8e425df12dc8f2ba48e1583
tree7b3c0e3a4e0c532e35cff0f636d7c3f88e13c24c
parentee31bc09cf7449963be9f3fc1f440cee85aeb2e7
parent330426cfe268a3ccaaf2baa20e0d1d37b0312c40
(Merge 3.3) 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