[clang] Fix implicit integer conversion for opaque enums declared in class templates...
[llvm-project.git] / lldb / test / API / commands / command / script_alias / TestCommandScriptAlias.py
blob2696f703f0e1c5abc62e9eebe0d882ad0727bc9b
1 """
2 Test lldb Python commands.
3 """
6 import lldb
7 from lldbsuite.test.lldbtest import *
10 class CommandScriptAliasTestCase(TestBase):
11 NO_DEBUG_INFO_TESTCASE = True
13 def test_pycmd(self):
14 self.runCmd("command script import tcsacmd.py")
15 self.runCmd("command script add -f tcsacmd.some_command_here attach")
17 # This is the function to remove the custom commands in order to have a
18 # clean slate for the next test case.
19 def cleanup():
20 self.runCmd("command script delete attach", check=False)
22 # Execute the cleanup function during test case tear down.
23 self.addTearDownHook(cleanup)
25 # We don't want to display the stdout if not in TraceOn() mode.
26 if not self.TraceOn():
27 self.HideStdout()
29 self.expect("attach a", substrs=["Victory is mine"])
30 self.runCmd("command script delete attach")
31 # this can't crash but we don't care whether the actual attach works
32 self.runCmd("attach noprocessexistswiththisname", check=False)