[Python-checkins] cpython (3.3): test_faulthandler: skip test_read_null() on AIX
victor.stinner
python-checkins at python.org
Wed Jul 3 22:37:09 CEST 2013
http://hg.python.org/cpython/rev/217535af4567
changeset: 84434:217535af4567
branch: 3.3
parent: 84432:910ec3471d55
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Jul 03 22:29:42 2013 +0200
summary:
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.
files:
Lib/test/test_faulthandler.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_faulthandler.py b/Lib/test/test_faulthandler.py
--- a/Lib/test/test_faulthandler.py
+++ b/Lib/test/test_faulthandler.py
@@ -107,6 +107,8 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list