diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-07-06 23:26:16 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-07-06 23:26:16 +0000 |
commit | f031b71f7efe5405e813311f18588ed1d2560f3c (patch) | |
tree | b7a65a0333057295807779833b1c856312ba0d63 /lldb/test/global_variables/TestGlobalVariables.py | |
parent | 1f9ad516c6255c88c2947ce826b2e9367f740d18 (diff) | |
download | bcm5719-llvm-f031b71f7efe5405e813311f18588ed1d2560f3c.tar.gz bcm5719-llvm-f031b71f7efe5405e813311f18588ed1d2560f3c.zip |
if -1 => evaluates to True
oops!
llvm-svn: 107724
Diffstat (limited to 'lldb/test/global_variables/TestGlobalVariables.py')
-rw-r--r-- | lldb/test/global_variables/TestGlobalVariables.py | 18 |
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()) |