diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-10-06 01:00:53 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-10-06 01:00:53 +0000 |
| commit | 4f09a0f855627134dcbcb508e60ab46861dc94ab (patch) | |
| tree | a9a6e9a138fb98c5dcad5cf4bbd9a238001370a0 | |
| parent | 6134655f08515bf770f25e97bf6937483e1aebc9 (diff) | |
| download | bcm5719-llvm-4f09a0f855627134dcbcb508e60ab46861dc94ab.tar.gz bcm5719-llvm-4f09a0f855627134dcbcb508e60ab46861dc94ab.zip | |
Add a test sequence for 'target variable' command when no arguments are given.
llvm-svn: 141264
| -rw-r--r-- | lldb/test/functionalities/target_command/TestTargetCommand.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/functionalities/target_command/TestTargetCommand.py b/lldb/test/functionalities/target_command/TestTargetCommand.py index 3f0bef3dc35..ef3fbd013d4 100644 --- a/lldb/test/functionalities/target_command/TestTargetCommand.py +++ b/lldb/test/functionalities/target_command/TestTargetCommand.py @@ -178,6 +178,14 @@ class targetCommandTestCase(TestBase): self.runCmd("b main") self.runCmd("run") + # New feature: you don't need to specify the variable(s) to 'target vaiable'. + # It will find all the global and static variables in the current compile unit. + self.expect("target variable", + substrs = ['my_global_char', + 'my_global_str', + 'my_global_str_ptr', + 'my_static_int']) + self.expect("target variable my_global_str", VARIABLES_DISPLAYED_CORRECTLY, substrs = ['my_global_str', '"abc"']) self.expect("target variable my_static_int", VARIABLES_DISPLAYED_CORRECTLY, |

