diff options
-rw-r--r-- | lldb/test/functionalities/abbreviation/TestAbbreviations.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lldb/test/functionalities/abbreviation/TestAbbreviations.py b/lldb/test/functionalities/abbreviation/TestAbbreviations.py index b6c124acf44..2f63020ce64 100644 --- a/lldb/test/functionalities/abbreviation/TestAbbreviations.py +++ b/lldb/test/functionalities/abbreviation/TestAbbreviations.py @@ -9,7 +9,7 @@ from lldbtest import * import lldbutil class AbbreviationsTestCase(TestBase): - + mydir = os.path.join("functionalities", "abbreviation") def test_nonrunning_command_abbreviations (self): @@ -35,6 +35,11 @@ class AbbreviationsTestCase(TestBase): 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", @@ -136,7 +141,7 @@ class AbbreviationsTestCase(TestBase): "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. @@ -147,7 +152,7 @@ class AbbreviationsTestCase(TestBase): ' 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"]) |