[lldb][NFC] Make assert in TestStaticVariables more expressive

This commit is contained in:
Raphael Isemann 2021-05-06 16:00:24 +02:00
parent 9e026273b0
commit 3026f75ed0
1 changed files with 2 additions and 2 deletions

View File

@ -151,8 +151,8 @@ class StaticVariableTestCase(TestBase):
self.DebugSBValue(child1)
child1_x = child1.GetChildAtIndex(0)
self.DebugSBValue(child1_x)
self.assertTrue(child1_x.GetTypeName() == 'int' and
child1_x.GetValue() == '11')
self.assertEqual(child1_x.GetTypeName(), 'int')
self.assertEqual(child1_x.GetValue(), '11')
# SBFrame.FindValue() should also work.
val = frame.FindValue("A::g_points", lldb.eValueTypeVariableGlobal)