diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-11-15 21:13:13 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-11-15 21:13:13 +0000 |
commit | 2341380033491993ebf4675500d09fc842a53442 (patch) | |
tree | 1048d9cb311575df2df903f7b21fea4f48a901df /lldb/test/python_api/value/TestValueAPI.py | |
parent | 43bde96a4c50866ecc9311d186220c9e1474d134 (diff) | |
download | bcm5719-llvm-2341380033491993ebf4675500d09fc842a53442.tar.gz bcm5719-llvm-2341380033491993ebf4675500d09fc842a53442.zip |
Add test scenario for value.GetChildAtIndex(0) where value is a pointer to a simple type.
llvm-svn: 144697
Diffstat (limited to 'lldb/test/python_api/value/TestValueAPI.py')
-rw-r--r-- | lldb/test/python_api/value/TestValueAPI.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/test/python_api/value/TestValueAPI.py b/lldb/test/python_api/value/TestValueAPI.py index 91de002b7d9..c754af04f28 100644 --- a/lldb/test/python_api/value/TestValueAPI.py +++ b/lldb/test/python_api/value/TestValueAPI.py @@ -89,6 +89,16 @@ class ValueAPITestCase(TestBase): print cvf.format(weekdays) print rdf.format(g_table) + # Get variable 'my_int_ptr'. + value = frame0.FindVariable('my_int_ptr') + self.assertTrue(value, VALID_VARIABLE) + self.DebugSBValue(value) + + # Get what 'my_int_ptr' points to. + pointed = value.GetChildAtIndex(0) + self.assertTrue(pointed, VALID_VARIABLE) + self.DebugSBValue(pointed) + # Get variable 'str_ptr'. value = frame0.FindVariable('str_ptr') self.assertTrue(value, VALID_VARIABLE) |