import lldbutil
class AbbreviationsTestCase(TestBase):
-
+
mydir = os.path.join("functionalities", "abbreviation")
def test_nonrunning_command_abbreviations (self):
self.expect("h",
startstr = "The following is a list of built-in, permanent debugger commands:")
+ # Execute cleanup function during test tear down
+ def cleanup():
+ self.runCmd("command alias t thread select")
+ self.addTearDownHook(cleanup)
+
# Several matching commands: list them and error out.
self.runCmd("command unalias t")
self.expect("t",
"thread #1:",
"a.out",
"sum\(a=1238, b=78392\)",
- "at main.cpp\:25",
+ "at main.cpp\:25",
"stop reason = breakpoint 2.1" ])
# ARCH, if not specified, defaults to x86_64.
' mov',
' addl ',
'ret'],
- patterns = ['(leave|popq|popl)'])
+ patterns = ['(leave|popq|popl)'])
self.expect("i d l main.cpp",
patterns = ["Line table for .*main.cpp in `a.out"])