[Lldb-commits] [lldb] r141264 - /lldb/trunk/test/functionalities/target_command/TestTargetCommand.py

Johnny Chen johnny.chen at apple.com
Wed Oct 5 18:01:05 PDT 2011


Author: johnny
Date: Wed Oct  5 20:00:53 2011
New Revision: 141264

URL: http://llvm.org/viewvc/llvm-project?rev=141264&view=rev
Log:
Add a test sequence for 'target variable' command when no arguments are given.

Modified:
    lldb/trunk/test/functionalities/target_command/TestTargetCommand.py

Modified: lldb/trunk/test/functionalities/target_command/TestTargetCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/target_command/TestTargetCommand.py?rev=141264&r1=141263&r2=141264&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/target_command/TestTargetCommand.py (original)
+++ lldb/trunk/test/functionalities/target_command/TestTargetCommand.py Wed Oct  5 20:00:53 2011
@@ -178,6 +178,14 @@
         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,





More information about the lldb-commits mailing list