[Lldb-commits] [lldb] r107525 - /lldb/trunk/test/global_variables/TestGlobalVariables.py
Johnny Chen
johnny.chen at apple.com
Fri Jul 2 15:12:25 PDT 2010
Author: johnny
Date: Fri Jul 2 17:12:25 2010
New Revision: 107525
URL: http://llvm.org/viewvc/llvm-project?rev=107525&view=rev
Log:
Also verified the values of global variables.
Modified:
lldb/trunk/test/global_variables/TestGlobalVariables.py
Modified: lldb/trunk/test/global_variables/TestGlobalVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/global_variables/TestGlobalVariables.py?rev=107525&r1=107524&r2=107525&view=diff
==============================================================================
--- lldb/trunk/test/global_variables/TestGlobalVariables.py (original)
+++ lldb/trunk/test/global_variables/TestGlobalVariables.py Fri Jul 2 17:12:25 2010
@@ -61,9 +61,13 @@
# 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())
More information about the lldb-commits
mailing list