Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / macosx / debugserver-exit-code / TestDebugServerExitCode.py
blob853d5635031f5610d05d60e23ca6d55cc66def80
1 """
2 Tests the exit code/description coming from the debugserver.
3 """
5 import lldb
6 from lldbsuite.test.decorators import *
7 from lldbsuite.test.lldbtest import *
8 from lldbsuite.test import lldbutil
11 class TestCase(TestBase):
12 @no_debug_info_test
13 @skipUnlessDarwin
14 @skipIfOutOfTreeDebugserver
15 def test_abort(self):
16 self.build()
17 target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
18 process = target.LaunchSimple(None, None, None)
19 # Continue until process is terminated.
20 process.Continue()
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")