forked from OSchip/llvm-project
[lldb][NFC] Make assert in TestStaticVariables more expressive
This commit is contained in:
parent
9e026273b0
commit
3026f75ed0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue