26 lines · python
1"""2Test exception behavior in DAP with signal.3"""4 5from lldbsuite.test.decorators import *6from lldbsuite.test.lldbtest import *7import lldbdap_testcase8 9 10class TestDAP_exception(lldbdap_testcase.DAPTestCaseBase):11 @skipIfWindows12 def test_stopped_description(self):13 """14 Test that exception description is shown correctly in stopped15 event.16 """17 program = self.getBuildArtifact("a.out")18 self.build_and_launch(program)19 self.do_continue()20 21 self.assertTrue(self.verify_stop_exception_info("signal SIGABRT"))22 exceptionInfo = self.get_exceptionInfo()23 self.assertEqual(exceptionInfo["breakMode"], "always")24 self.assertEqual(exceptionInfo["description"], "signal SIGABRT")25 self.assertEqual(exceptionInfo["exceptionId"], "signal")26