"break here", lldb.SBFileSpec("b.cpp"))
frame = thread.GetSelectedFrame()
value = frame.EvaluateExpression("x == nil")
- self.assertTrue(str(value.GetError())
- .find("comparison between NULL and non-pointer ('Tinky' and NULL)")
- != -1)
- self.assertTrue(str(value.GetError())
- .find("invalid operands to binary expression ('Tinky' and")
- != -1)
self.assertFalse(value.GetError().Success())
+ self.assertIn("comparison between NULL and non-pointer ('Tinky' and NULL)", str(value.GetError()))
+ self.assertIn("invalid operands to binary expression ('Tinky' and", str(value.GetError()))