From 03813ec687caeb63e82d51365a471ebd3dbd0280 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 2 Jul 2010 22:12:25 +0000 Subject: [PATCH] Also verified the values of global variables. llvm-svn: 107525 --- lldb/test/global_variables/TestGlobalVariables.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lldb/test/global_variables/TestGlobalVariables.py b/lldb/test/global_variables/TestGlobalVariables.py index 16596aee278e..44da9df98743 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())