[Python-checkins] cpython: Issue #12700: fix test_faulthandler for Mac OS X Lion

victor.stinner python-checkins at python.org
Mon Aug 8 22:44:31 CEST 2011


http://hg.python.org/cpython/rev/1777df2ce50d
changeset:   71777:1777df2ce50d
parent:      71775:89feee4fb8d6
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Mon Aug 08 22:43:45 2011 +0200
summary:
  Issue #12700: fix test_faulthandler for Mac OS X Lion

Read from NULL raises SIGILL, not SIGSEGV, on Mac OS X Lion.

files:
  Lib/test/test_faulthandler.py |  9 +++++----
  1 files changed, 5 insertions(+), 4 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
@@ -112,7 +112,8 @@
 faulthandler._read_null()
 """.strip(),
             3,
-            '(?:Segmentation fault|Bus error)')
+            # Issue #12700: Read NULL raises SIGILL on Mac OS X Lion
+            '(?:Segmentation fault|Bus error|Illegal instruction)')
 
     def test_sigsegv(self):
         self.check_fatal_error("""
@@ -192,7 +193,7 @@
 faulthandler._read_null(True)
 """.strip(),
             3,
-            '(?:Segmentation fault|Bus error)')
+            '(?:Segmentation fault|Bus error|Illegal instruction)')
 
     def test_enable_file(self):
         with temporary_filename() as filename:
@@ -203,7 +204,7 @@
 faulthandler._read_null()
 """.strip().format(filename=repr(filename)),
                 4,
-                '(?:Segmentation fault|Bus error)',
+                '(?:Segmentation fault|Bus error|Illegal instruction)',
                 filename=filename)
 
     def test_enable_single_thread(self):
@@ -213,7 +214,7 @@
 faulthandler._read_null()
 """.strip(),
             3,
-            '(?:Segmentation fault|Bus error)',
+            '(?:Segmentation fault|Bus error|Illegal instruction)',
             all_threads=False)
 
     def test_disable(self):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list