forked from OSchip/llvm-project
[lldb] Modernize TestOperatorOverload.py asserts
This commit is contained in:
parent
aa93d84db9
commit
621f845679
|
@ -13,10 +13,6 @@ class TestOperatorOverload(TestBase):
|
|||
"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()))
|
||||
|
|
Loading…
Reference in New Issue