mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
f4c47b5a35
commit
330426cfe2
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ class FaultHandlerTests(unittest.TestCase):
|
|||
self.assertRegex(output, regex)
|
||||
self.assertNotEqual(exitcode, 0)
|
||||
|
||||
@unittest.skipIf(sys.platform.startswith('aix'),
|
||||
"the first page of memory is a mapped read-only on AIX")
|
||||
def test_read_null(self):
|
||||
self.check_fatal_error("""
|
||||
import faulthandler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue