]> granicus.if.org Git - python/commitdiff
(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)
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.

1  2 
Lib/test/test_faulthandler.py

Simple merge