Message141695
On Mac OS 10.7, test_faulthandler fails. See test output below.
It looks as though the tests may be at fault in expecting to see "(?:Segmentation fault|Bus error)" instead of "(?:Segmentation fault|Bus error|Illegal instruction)".
test_disable (__main__.FaultHandlerTests) ... ok
test_dump_traceback (__main__.FaultHandlerTests) ... ok
test_dump_traceback_file (__main__.FaultHandlerTests) ... ok
test_dump_traceback_threads (__main__.FaultHandlerTests) ... ok
test_dump_traceback_threads_file (__main__.FaultHandlerTests) ... ok
test_dump_tracebacks_later (__main__.FaultHandlerTests) ... ok
test_dump_tracebacks_later_cancel (__main__.FaultHandlerTests) ... ok
test_dump_tracebacks_later_file (__main__.FaultHandlerTests) ... ok
test_dump_tracebacks_later_repeat (__main__.FaultHandlerTests) ... ok
test_dump_tracebacks_later_twice (__main__.FaultHandlerTests) ... ok
test_enable_file (__main__.FaultHandlerTests) ... FAIL
test_enable_single_thread (__main__.FaultHandlerTests) ... FAIL
test_fatal_error (__main__.FaultHandlerTests) ... ok
test_gil_released (__main__.FaultHandlerTests) ... FAIL
test_is_enabled (__main__.FaultHandlerTests) ... ok
test_read_null (__main__.FaultHandlerTests) ... FAIL
test_register (__main__.FaultHandlerTests) ... ok
test_register_chain (__main__.FaultHandlerTests) ... ok
test_register_file (__main__.FaultHandlerTests) ... ok
test_register_threads (__main__.FaultHandlerTests) ... ok
test_sigabrt (__main__.FaultHandlerTests) ... ok
test_sigbus (__main__.FaultHandlerTests) ... ok
test_sigfpe (__main__.FaultHandlerTests) ... ok
test_sigill (__main__.FaultHandlerTests) ... ok
test_sigsegv (__main__.FaultHandlerTests) ... ok
test_stack_overflow (__main__.FaultHandlerTests) ... ok
test_unregister (__main__.FaultHandlerTests) ... ok
======================================================================
FAIL: test_enable_file (__main__.FaultHandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_faulthandler.py", line 207, in test_enable_file
filename=filename)
File "test_faulthandler.py", line 105, in check_fatal_error
self.assertRegex(output, regex)
AssertionError: Regex didn't match: '^Fatal Python error: (?:Segmentation fault|Bus error)\n\nCurrent\\ thread\\ XXX:\n File "<string>", line 4 in <module>$' not found in 'Fatal Python error: Illegal instruction\n\nCurrent thread XXX:\n File "<string>", line 4 in <module>'
======================================================================
FAIL: test_enable_single_thread (__main__.FaultHandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_faulthandler.py", line 217, in test_enable_single_thread
all_threads=False)
File "test_faulthandler.py", line 105, in check_fatal_error
self.assertRegex(output, regex)
AssertionError: Regex didn't match: '^Fatal Python error: (?:Segmentation fault|Bus error)\n\nTraceback\\ \\(most\\ recent\\ call\\ first\\):\n File "<string>", line 3 in <module>$' not found in 'Fatal Python error: Illegal instruction\n\nTraceback (most recent call first):\n File "<string>", line 3 in <module>'
======================================================================
FAIL: test_gil_released (__main__.FaultHandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_faulthandler.py", line 195, in test_gil_released
'(?:Segmentation fault|Bus error)')
File "test_faulthandler.py", line 105, in check_fatal_error
self.assertRegex(output, regex)
AssertionError: Regex didn't match: '^Fatal Python error: (?:Segmentation fault|Bus error)\n\nCurrent\\ thread\\ XXX:\n File "<string>", line 3 in <module>$' not found in 'Fatal Python error: Illegal instruction\n\nCurrent thread XXX:\n File "<string>", line 3 in <module>'
======================================================================
FAIL: test_read_null (__main__.FaultHandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_faulthandler.py", line 115, in test_read_null
'(?:Segmentation fault|Bus error)')
File "test_faulthandler.py", line 105, in check_fatal_error
self.assertRegex(output, regex)
AssertionError: Regex didn't match: '^Fatal Python error: (?:Segmentation fault|Bus error)\n\nCurrent\\ thread\\ XXX:\n File "<string>", line 3 in <module>$' not found in 'Fatal Python error: Illegal instruction\n\nCurrent thread XXX:\n File "<string>", line 3 in <module>'
----------------------------------------------------------------------
Ran 27 tests in 21.711s
FAILED (failures=4)
Traceback (most recent call last):
File "test_faulthandler.py", line 550, in <module>
test_main()
File "test_faulthandler.py", line 547, in test_main
support.run_unittest(FaultHandlerTests)
File "/Users/gdr/hg.python.org/cpython/Lib/test/support.py", line 1327, in run_unittest
_run_suite(suite)
File "/Users/gdr/hg.python.org/cpython/Lib/test/support.py", line 1302, in _run_suite
raise TestFailed(err)
test.support.TestFailed: multiple errors occurred |
|
Date |
User |
Action |
Args |
2011-08-05 23:18:34 | gdr@garethrees.org | set | recipients:
+ gdr@garethrees.org |
2011-08-05 23:18:34 | gdr@garethrees.org | set | messageid: <1312586314.63.0.605115696867.issue12700@psf.upfronthosting.co.za> |
2011-08-05 23:18:34 | gdr@garethrees.org | link | issue12700 messages |
2011-08-05 23:18:33 | gdr@garethrees.org | create | |
|