|
|
|
@ -49,7 +49,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase):
|
|
|
|
|
test_process.start()
|
|
|
|
|
|
|
|
|
|
set_child_signal_handler(id(self), test_process.pid)
|
|
|
|
|
time.sleep(5)
|
|
|
|
|
time.sleep(10)
|
|
|
|
|
except SystemError as ex:
|
|
|
|
|
self.assertIn("Fatal", cpt.get_exception_message(ex))
|
|
|
|
|
exception = ex
|
|
|
|
@ -67,7 +67,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase):
|
|
|
|
|
test_process.start()
|
|
|
|
|
|
|
|
|
|
set_child_signal_handler(id(self), test_process.pid)
|
|
|
|
|
time.sleep(3)
|
|
|
|
|
time.sleep(10)
|
|
|
|
|
except SystemError as ex:
|
|
|
|
|
self.assertIn("Segmentation fault", cpt.get_exception_message(ex))
|
|
|
|
|
exception = ex
|
|
|
|
@ -85,7 +85,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase):
|
|
|
|
|
test_process.start()
|
|
|
|
|
|
|
|
|
|
set_child_signal_handler(id(self), test_process.pid)
|
|
|
|
|
time.sleep(3)
|
|
|
|
|
time.sleep(10)
|
|
|
|
|
except SystemError as ex:
|
|
|
|
|
self.assertIn("Bus error", cpt.get_exception_message(ex))
|
|
|
|
|
exception = ex
|
|
|
|
|