aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/API/python_api')
-rw-r--r--lldb/test/API/python_api/class_members/TestSBTypeClassMembers.py2
-rw-r--r--lldb/test/API/python_api/findvalue_duplist/TestSBFrameFindValue.py2
-rw-r--r--lldb/test/API/python_api/name_lookup/TestNameLookup.py2
-rw-r--r--lldb/test/API/python_api/objc_type/TestObjCType.py6
-rw-r--r--lldb/test/API/python_api/sbvalue_persist/TestSBValuePersist.py4
-rw-r--r--lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py16
-rw-r--r--lldb/test/API/python_api/value/empty_class/TestValueAPIEmptyClass.py2
7 files changed, 17 insertions, 17 deletions
diff --git a/lldb/test/API/python_api/class_members/TestSBTypeClassMembers.py b/lldb/test/API/python_api/class_members/TestSBTypeClassMembers.py
index 884043a..091bb1b 100644
--- a/lldb/test/API/python_api/class_members/TestSBTypeClassMembers.py
+++ b/lldb/test/API/python_api/class_members/TestSBTypeClassMembers.py
@@ -46,7 +46,7 @@ class SBTypeMemberFunctionsTest(TestBase):
self.assertTrue(process, PROCESS_IS_VALID)
# Get Frame #0.
- self.assertTrue(process.GetState() == lldb.eStateStopped)
+ self.assertEquals(process.GetState(), lldb.eStateStopped)
thread = lldbutil.get_stopped_thread(
process, lldb.eStopReasonBreakpoint)
self.assertTrue(
diff --git a/lldb/test/API/python_api/findvalue_duplist/TestSBFrameFindValue.py b/lldb/test/API/python_api/findvalue_duplist/TestSBFrameFindValue.py
index 0c9e280..4042052 100644
--- a/lldb/test/API/python_api/findvalue_duplist/TestSBFrameFindValue.py
+++ b/lldb/test/API/python_api/findvalue_duplist/TestSBFrameFindValue.py
@@ -40,7 +40,7 @@ class SBFrameFindValueTestCase(TestBase):
threads = lldbutil.get_threads_stopped_at_breakpoint(
process, breakpoint)
- self.assertTrue(len(threads) == 1)
+ self.assertEquals(len(threads), 1)
self.thread = threads[0]
self.frame = self.thread.frames[0]
self.assertTrue(self.frame, "Frame 0 is valid.")
diff --git a/lldb/test/API/python_api/name_lookup/TestNameLookup.py b/lldb/test/API/python_api/name_lookup/TestNameLookup.py
index 6cd8d4f..7db8b61 100644
--- a/lldb/test/API/python_api/name_lookup/TestNameLookup.py
+++ b/lldb/test/API/python_api/name_lookup/TestNameLookup.py
@@ -55,7 +55,7 @@ class TestNameLookup(TestBase):
self.assertGreaterEqual(len(mangled_to_symbol), 6)
for mangled in mangled_to_symbol.keys():
symbol_contexts = target.FindFunctions(mangled, lldb.eFunctionNameTypeFull)
- self.assertTrue(symbol_contexts.GetSize() == 1)
+ self.assertEquals(symbol_contexts.GetSize(), 1)
for symbol_context in symbol_contexts:
self.assertTrue(symbol_context.GetFunction().IsValid())
self.assertTrue(symbol_context.GetSymbol().IsValid())
diff --git a/lldb/test/API/python_api/objc_type/TestObjCType.py b/lldb/test/API/python_api/objc_type/TestObjCType.py
index 37f5375..03b4150 100644
--- a/lldb/test/API/python_api/objc_type/TestObjCType.py
+++ b/lldb/test/API/python_api/objc_type/TestObjCType.py
@@ -40,7 +40,7 @@ class ObjCSBTypeTestCase(TestBase):
self.assertTrue(process, PROCESS_IS_VALID)
# Get Frame #0.
- self.assertTrue(process.GetState() == lldb.eStateStopped)
+ self.assertEquals(process.GetState(), lldb.eStateStopped)
thread = lldbutil.get_stopped_thread(
process, lldb.eStopReasonBreakpoint)
self.assertTrue(
@@ -60,9 +60,9 @@ class ObjCSBTypeTestCase(TestBase):
aFooType = aBarType.GetDirectBaseClassAtIndex(0)
self.assertTrue(aFooType.IsValid(), "Foo should be a valid data type")
- self.assertTrue(aFooType.GetName() == "Foo", "Foo has the right name")
+ self.assertEquals(aFooType.GetName(), "Foo", "Foo has the right name")
- self.assertTrue(aBarType.GetNumberOfFields() == 1, "Bar has a field")
+ self.assertEquals(aBarType.GetNumberOfFields(), 1, "Bar has a field")
aBarField = aBarType.GetFieldAtIndex(0)
self.assertTrue(
diff --git a/lldb/test/API/python_api/sbvalue_persist/TestSBValuePersist.py b/lldb/test/API/python_api/sbvalue_persist/TestSBValuePersist.py
index 1662f69..410c6c9 100644
--- a/lldb/test/API/python_api/sbvalue_persist/TestSBValuePersist.py
+++ b/lldb/test/API/python_api/sbvalue_persist/TestSBValuePersist.py
@@ -63,7 +63,7 @@ class SBValuePersistTestCase(TestBase):
self.assertTrue(
barPersist.GetPointeeData().sint32[0] == 4,
"barPersist != 4")
- self.assertTrue(bazPersist.GetSummary() == '"85"', "bazPersist != 85")
+ self.assertEquals(bazPersist.GetSummary(), '"85"', "bazPersist != 85")
self.runCmd("continue")
@@ -77,6 +77,6 @@ class SBValuePersistTestCase(TestBase):
self.assertTrue(
barPersist.GetPointeeData().sint32[0] == 4,
"barPersist != 4")
- self.assertTrue(bazPersist.GetSummary() == '"85"', "bazPersist != 85")
+ self.assertEquals(bazPersist.GetSummary(), '"85"', "bazPersist != 85")
self.expect("expr *(%s)" % (barPersist.GetName()), substrs=['= 4'])
diff --git a/lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py b/lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py
index 6f0dee2..b7977f1 100644
--- a/lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py
+++ b/lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py
@@ -60,7 +60,7 @@ class ChangeValueAPITestCase(TestBase):
self.assertTrue(process, PROCESS_IS_VALID)
# Get Frame #0.
- self.assertTrue(process.GetState() == lldb.eStateStopped)
+ self.assertEquals(process.GetState(), lldb.eStateStopped)
thread = lldbutil.get_stopped_thread(
process, lldb.eStopReasonBreakpoint)
self.assertTrue(
@@ -76,7 +76,7 @@ class ChangeValueAPITestCase(TestBase):
self.assertTrue(val_value.IsValid(), "Got the SBValue for val")
actual_value = val_value.GetValueAsSigned(error, 0)
self.assertTrue(error.Success(), "Got a value from val")
- self.assertTrue(actual_value == 100, "Got the right value from val")
+ self.assertEquals(actual_value, 100, "Got the right value from val")
result = val_value.SetValueFromCString("12345")
self.assertTrue(result, "Setting val returned True.")
@@ -99,7 +99,7 @@ class ChangeValueAPITestCase(TestBase):
self.assertTrue(
error.Success(),
"Got an unsigned value for second_val")
- self.assertTrue(actual_value == 5555)
+ self.assertEquals(actual_value, 5555)
result = mine_second_value.SetValueFromCString("98765")
self.assertTrue(result, "Success setting mine.second_value.")
@@ -107,7 +107,7 @@ class ChangeValueAPITestCase(TestBase):
self.assertTrue(
error.Success(),
"Got a changed value from mine.second_val")
- self.assertTrue(actual_value == 98765,
+ self.assertEquals(actual_value, 98765,
"Got the right changed value from mine.second_val")
# Next do the same thing with the pointer version.
@@ -120,7 +120,7 @@ class ChangeValueAPITestCase(TestBase):
self.assertTrue(
error.Success(),
"Got an unsigned value for ptr->second_val")
- self.assertTrue(actual_value == 6666)
+ self.assertEquals(actual_value, 6666)
result = ptr_second_value.SetValueFromCString("98765")
self.assertTrue(result, "Success setting ptr->second_value.")
@@ -128,7 +128,7 @@ class ChangeValueAPITestCase(TestBase):
self.assertTrue(
error.Success(),
"Got a changed value from ptr->second_val")
- self.assertTrue(actual_value == 98765,
+ self.assertEquals(actual_value, 98765,
"Got the right changed value from ptr->second_val")
# gcc may set multiple locations for breakpoint
@@ -138,7 +138,7 @@ class ChangeValueAPITestCase(TestBase):
# values as well...
process.Continue()
- self.assertTrue(process.GetState() == lldb.eStateStopped)
+ self.assertEquals(process.GetState(), lldb.eStateStopped)
thread = lldbutil.get_stopped_thread(
process, lldb.eStopReasonBreakpoint)
self.assertTrue(
@@ -171,7 +171,7 @@ class ChangeValueAPITestCase(TestBase):
process.Continue()
- self.assertTrue(process.GetState() == lldb.eStateStopped)
+ self.assertEquals(process.GetState(), lldb.eStateStopped)
thread = lldbutil.get_stopped_thread(
process, lldb.eStopReasonBreakpoint)
self.assertTrue(
diff --git a/lldb/test/API/python_api/value/empty_class/TestValueAPIEmptyClass.py b/lldb/test/API/python_api/value/empty_class/TestValueAPIEmptyClass.py
index c7197e5..c778577 100644
--- a/lldb/test/API/python_api/value/empty_class/TestValueAPIEmptyClass.py
+++ b/lldb/test/API/python_api/value/empty_class/TestValueAPIEmptyClass.py
@@ -28,7 +28,7 @@ class ValueAPIEmptyClassTestCase(TestBase):
self.assertTrue(process, PROCESS_IS_VALID)
# Get Frame #0.
- self.assertTrue(process.GetState() == lldb.eStateStopped)
+ self.assertEquals(process.GetState(), lldb.eStateStopped)
thread = lldbutil.get_stopped_thread(
process, lldb.eStopReasonBreakpoint)
self.assertTrue(