mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 11:34:53 +08:00
[0.3.x] fixed : array fields has wrong value
git-svn-id: https://pykd.svn.codeplex.com/svn@86680 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
7b6c8781f8
commit
0d74b51bfa
@ -101,6 +101,7 @@ class TypedVarTest( unittest.TestCase ):
|
|||||||
|
|
||||||
def testArrayField(self):
|
def testArrayField(self):
|
||||||
tv = target.module.typedVar( "g_structWithArray" )
|
tv = target.module.typedVar( "g_structWithArray" )
|
||||||
|
self.assertEqual( tv + tv.fieldOffset("m_arrayField"),tv.m_arrayField)
|
||||||
self.assertEqual( 2, len(tv.m_arrayField) )
|
self.assertEqual( 2, len(tv.m_arrayField) )
|
||||||
self.assertEqual( 0, tv.m_arrayField[0] )
|
self.assertEqual( 0, tv.m_arrayField[0] )
|
||||||
self.assertEqual( 2, tv.m_arrayField[1] )
|
self.assertEqual( 2, tv.m_arrayField[1] )
|
||||||
|
Loading…
Reference in New Issue
Block a user