[lldb] Convert more assertTrue to assertEqual (NFC)
Follow up to D95813, this converts multiline assertTrue to assertEqual. Differential Revision: https://reviews.llvm.org/D95899
This commit is contained in:
@@ -99,8 +99,7 @@ class ThreadAPITestCase(TestBase):
|
||||
|
||||
proc_of_thread = thread.GetProcess()
|
||||
self.trace("proc_of_thread:", proc_of_thread)
|
||||
self.assertTrue(proc_of_thread.GetProcessID()
|
||||
== process.GetProcessID())
|
||||
self.assertEqual(proc_of_thread.GetProcessID(), process.GetProcessID())
|
||||
|
||||
def get_stop_description(self):
|
||||
"""Test Python SBThread.GetStopDescription() API."""
|
||||
@@ -180,8 +179,8 @@ class ThreadAPITestCase(TestBase):
|
||||
|
||||
thread.StepOut()
|
||||
self.runCmd("thread backtrace")
|
||||
self.assertTrue(
|
||||
thread.GetFrameAtIndex(0).GetLineEntry().GetLine() == self.step_out_of_malloc,
|
||||
self.assertEqual(
|
||||
thread.GetFrameAtIndex(0).GetLineEntry().GetLine(), self.step_out_of_malloc,
|
||||
"step out of malloc into function b is successful")
|
||||
|
||||
def step_over_3_times(self, exe_name):
|
||||
|
||||
Reference in New Issue
Block a user