brintos

brintos / llvm-project-archived public Read only

0
0
Text · 745 B · 2d9c0f5 Raw
24 lines · python
1"""2Tests the exit code/description coming from the debugserver.3"""4 5import lldb6from lldbsuite.test.decorators import *7from lldbsuite.test.lldbtest import *8from lldbsuite.test import lldbutil9 10 11class TestCase(TestBase):12    @no_debug_info_test13    @skipUnlessDarwin14    def test_abort(self):15        self.build()16        target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"))17        process = target.LaunchSimple(None, None, None)18        # Continue until process is terminated.19        process.Continue()20        # Test for the abort signal code.21        self.assertEqual(process.GetExitStatus(), 6)22        # Test for the exit code description.23        self.assertEqual(process.GetExitDescription(), "Terminated due to signal 6")24