summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-07-02 22:12:25 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-07-02 22:12:25 +0000
commit03813ec687caeb63e82d51365a471ebd3dbd0280 (patch)
treeaf72bb9c6014627f2902f4693741b41db1487740
parent4be0d7ead926c948352df7b0daf3cbbf16dfdfab (diff)
downloadbcm5719-llvm-03813ec687caeb63e82d51365a471ebd3dbd0280.tar.gz
bcm5719-llvm-03813ec687caeb63e82d51365a471ebd3dbd0280.zip
Also verified the values of global variables.
llvm-svn: 107525
-rw-r--r--lldb/test/global_variables/TestGlobalVariables.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/lldb/test/global_variables/TestGlobalVariables.py b/lldb/test/global_variables/TestGlobalVariables.py
index 16596aee278..44da9df9874 100644
--- a/lldb/test/global_variables/TestGlobalVariables.py
+++ b/lldb/test/global_variables/TestGlobalVariables.py
@@ -61,9 +61,13 @@ class TestClassTypes(unittest.TestCase):
# Check that GLOBAL scopes are indicated for the variables.
self.ci.HandleCommand("variable list -s -a", res);
self.assertTrue(res.Succeeded())
- self.assertTrue(res.GetOutput().find('GLOBAL: g_file_static_cstr') and
- res.GetOutput().find('GLOBAL: g_file_global_int') and
- res.GetOutput().find('GLOBAL: g_file_global_cstr'))
+ output = res.GetOutput()
+ self.assertTrue(output.find('GLOBAL: g_file_static_cstr') and
+ output.find('g_file_static_cstr') and
+ output.find('GLOBAL: g_file_global_int') and
+ output.find('(int) 42') and
+ output.find('GLOBAL: g_file_global_cstr') and
+ output.find('g_file_global_cstr'))
self.ci.HandleCommand("continue", res)
self.assertTrue(res.Succeeded())
OpenPOWER on IntegriCloud