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("""
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:
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):
faulthandler._read_null()
""".strip(),
3,
- '(?:Segmentation fault|Bus error)',
+ '(?:Segmentation fault|Bus error|Illegal instruction)',
all_threads=False)
def test_disable(self):