Also verified the values of global variables.

llvm-svn: 107525
This commit is contained in:
Johnny Chen 2010-07-02 22:12:25 +00:00
parent 4be0d7ead9
commit 03813ec687
1 changed files with 7 additions and 3 deletions

View File

@ -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())