Issue #11393: The fault handler handles also SIGABRT

This commit is contained in:
Victor Stinner 2011-04-01 12:13:55 +02:00
parent bc6a4db66d
commit d727e23243
5 changed files with 45 additions and 17 deletions

View file

@ -112,6 +112,15 @@ faulthandler._sigsegv()
3,
'Segmentation fault')
def test_sigabrt(self):
self.check_fatal_error("""
import faulthandler
faulthandler.enable()
faulthandler._sigabrt()
""".strip(),
3,
'Aborted')
@unittest.skipIf(sys.platform == 'win32',
"SIGFPE cannot be caught on Windows")
def test_sigfpe(self):