2 Tests the exit code/description coming from the debugserver.
6 from lldbsuite
.test
.decorators
import *
7 from lldbsuite
.test
.lldbtest
import *
8 from lldbsuite
.test
import lldbutil
11 class TestCase(TestBase
):
14 @skipIfOutOfTreeDebugserver
17 target
= self
.dbg
.CreateTarget(self
.getBuildArtifact("a.out"))
18 process
= target
.LaunchSimple(None, None, None)
19 # Continue until process is terminated.
21 # Test for the abort signal code.
22 self
.assertEqual(process
.GetExitStatus(), 6)
23 # Test for the exit code description.
24 self
.assertEqual(process
.GetExitDescription(), "Terminated due to signal 6")