summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-03-25 21:59:06 +0000
committerEnrico Granata <egranata@apple.com>2016-03-25 21:59:06 +0000
commit3c110dd6b40dff4e46b391878112a874e03f12a6 (patch)
tree1dba0cad68c7a732edaafdea80fc7a1077879e33 /lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py
parentd0ac31a70694a8bf5604a151afa913b6a51078b9 (diff)
downloadbcm5719-llvm-3c110dd6b40dff4e46b391878112a874e03f12a6.tar.gz
bcm5719-llvm-3c110dd6b40dff4e46b391878112a874e03f12a6.zip
Fix an issue with nested aliases where the help system wouldn't correctly track the fact that an alias is an alias to a dash-dash alias
(and I hope I typed the word 'alias' enough times in this commit message :-) llvm-svn: 264468
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py b/lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py
index fb3a18ea427..16ee2e586df 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py
@@ -46,6 +46,8 @@ class NestedAliasTestCase(TestBase):
def cleanup():
self.runCmd('command unalias read', check=False)
self.runCmd('command unalias rd', check=False)
+ self.runCmd('command unalias fo', check=False)
+ self.runCmd('command unalias foself', check=False)
# Execute the cleanup function during test case tear down.
self.addTearDownHook(cleanup)
@@ -58,3 +60,9 @@ class NestedAliasTestCase(TestBase):
self.expect('memory read -f A -c 3 `&my_ptr[0]`', substrs=['deadfeed'], matching=False)
self.expect('rd `&my_ptr[0]`', substrs=['deadfeed'], matching=False)
+
+ self.runCmd('command alias fo frame variable -O --')
+ self.runCmd('command alias foself fo self')
+
+ self.expect('help foself', substrs=['--show-all-children', '--raw-output'], matching=False)
+ self.expect('help foself', substrs=['Show frame variables.'], matching=True)
OpenPOWER on IntegriCloud