summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/value/TestValueAPI.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-07-21 23:02:00 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-07-21 23:02:00 +0000
commit6cbb8d684f66378d11df9c4cf446484c7ac67968 (patch)
tree5ebec4eeb79fc64d20c9235d99b6a3774066a757 /lldb/test/python_api/value/TestValueAPI.py
parent8dbf59d0418df116394712f717e487c4b2b4e64b (diff)
downloadbcm5719-llvm-6cbb8d684f66378d11df9c4cf446484c7ac67968.tar.gz
bcm5719-llvm-6cbb8d684f66378d11df9c4cf446484c7ac67968.zip
Add test scenario of SBValue APIs for the 'days_of_week' global variable.
llvm-svn: 135716
Diffstat (limited to 'lldb/test/python_api/value/TestValueAPI.py')
-rw-r--r--lldb/test/python_api/value/TestValueAPI.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/test/python_api/value/TestValueAPI.py b/lldb/test/python_api/value/TestValueAPI.py
index ee0fdcbed47..1453af67854 100644
--- a/lldb/test/python_api/value/TestValueAPI.py
+++ b/lldb/test/python_api/value/TestValueAPI.py
@@ -59,6 +59,13 @@ class ValueAPITestCase(TestBase):
self.assertTrue(thread != None, "There should be a thread stopped due to breakpoint condition")
frame0 = thread.GetFrameAtIndex(0)
+ # Get global variable 'days_of_week'.
+ list = target.FindGlobalVariables('days_of_week', 1)
+ days_of_week = list.GetValueAtIndex(0)
+ self.assertTrue(days_of_week, VALID_VARIABLE)
+ self.assertTrue(days_of_week.GetNumChildren() == 7, VALID_VARIABLE)
+ self.DebugSBValue(days_of_week)
+
# Get variable 'str_ptr'.
value = frame0.FindVariable('str_ptr')
self.assertTrue(value, VALID_VARIABLE)
OpenPOWER on IntegriCloud