mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 12:53:23 +08:00
[0.2.x] + ptrTo() test case
git-svn-id: https://pykd.svn.codeplex.com/svn@81364 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
570fe0ead4
commit
305acde46f
@ -41,6 +41,10 @@ class TypedVarTest( unittest.TestCase ):
|
||||
target.module.offset("g_structTest") )
|
||||
self.assertEqual( 500, tv3.m_field1 )
|
||||
|
||||
tv4 = pykd.typedVar( pykd.ptrTo( target.module.type("structTest") ),
|
||||
target.module.offset("g_structTestPtr") )
|
||||
self.assertEqual( 500, tv4.deref().m_field1 )
|
||||
|
||||
def testConst(self):
|
||||
self.assertEqual( True, target.module.typedVar( "g_constBoolValue" ) )
|
||||
self.assertEqual( 0x5555, target.module.typedVar( "g_constNumValue" ) )
|
||||
|
Loading…
Reference in New Issue
Block a user