mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
[lldb][NFC] Make assert in TestStaticVariables more expressive
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user