summaryrefslogtreecommitdiffstats
path: root/lldb/test/global_variables/TestGlobalVariables.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/global_variables/TestGlobalVariables.py')
-rw-r--r--lldb/test/global_variables/TestGlobalVariables.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/lldb/test/global_variables/TestGlobalVariables.py b/lldb/test/global_variables/TestGlobalVariables.py
index 3b3009035f0..854a1b7ba24 100644
--- a/lldb/test/global_variables/TestGlobalVariables.py
+++ b/lldb/test/global_variables/TestGlobalVariables.py
@@ -30,24 +30,24 @@ class TestClassTypes(lldbtest.TestBase):
self.ci.HandleCommand("thread list", res)
print "thread list ->", res.GetOutput()
self.assertTrue(res.Succeeded())
- self.assertTrue(res.GetOutput().find('state is Stopped') and
- res.GetOutput().find('stop reason = breakpoint'))
+ self.assertTrue(res.GetOutput().find('state is Stopped') > 0 and
+ res.GetOutput().find('stop reason = breakpoint') > 0)
# The breakpoint should have a hit count of 1.
self.ci.HandleCommand("breakpoint list", res)
self.assertTrue(res.Succeeded())
- self.assertTrue(res.GetOutput().find(' resolved, hit count = 1'))
+ self.assertTrue(res.GetOutput().find(' resolved, hit count = 1') > 0)
# Check that GLOBAL scopes are indicated for the variables.
self.ci.HandleCommand("variable list -s -a", res);
self.assertTrue(res.Succeeded())
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.assertTrue(output.find('GLOBAL: g_file_static_cstr') > 0 and
+ output.find('g_file_static_cstr') > 0 and
+ output.find('GLOBAL: g_file_global_int') > 0 and
+ output.find('(int) 42') > 0 and
+ output.find('GLOBAL: g_file_global_cstr') > 0 and
+ output.find('g_file_global_cstr') > 0)
self.ci.HandleCommand("continue", res)
self.assertTrue(res.Succeeded())
OpenPOWER on IntegriCloud