[AMDGPU] Add True16 register classes.
[llvm-project.git] / lldb / test / API / commands / quit / TestQuit.py
blobef9439c2807e53a44da148647edad4cb1a433e04
1 """
2 Test lldb's quit command.
3 """
6 import lldb
7 from lldbsuite.test.decorators import *
8 from lldbsuite.test.lldbtest import *
9 from lldbsuite.test import lldbutil
12 class QuitCommandTestCase(TestBase):
13 @no_debug_info_test
14 def test_quit_exit_code_disallow(self):
15 self.ci.AllowExitCodeOnQuit(False)
16 self.expect(
17 "quit 20",
18 substrs=[
19 "error: The current driver doesn't allow custom exit codes for the quit command"
21 error=True,
23 self.assertFalse(self.ci.HasCustomQuitExitCode())
25 @no_debug_info_test
26 def test_quit_exit_code_allow(self):
27 self.ci.AllowExitCodeOnQuit(True)
28 self.runCmd("quit 10", check=False)
29 self.assertTrue(self.ci.HasCustomQuitExitCode())
30 self.assertEqual(self.ci.GetQuitStatus(), 10)