mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[0.1.x] ~ fixed tests
git-svn-id: https://pykd.svn.codeplex.com/svn@73299 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
eceba31ad4
commit
4ec6bec3a0
@ -171,7 +171,10 @@ class TypedVarTest( unittest.TestCase ):
|
|||||||
|
|
||||||
def testPointerToFunction( self ):
|
def testPointerToFunction( self ):
|
||||||
tv1 = target.module.typedVar( "g_unTypedPtrToFunction" )
|
tv1 = target.module.typedVar( "g_unTypedPtrToFunction" )
|
||||||
self.assertEqual( target.module.offset("EnumWindowsProc2"), tv1 )
|
|
||||||
|
# if debug: g_unTypedPtrToFunction point to jmp EnumWindowsProc2 (e9 xxxxxxxx)
|
||||||
|
self.assertTrue( ( target.module.offset("EnumWindowsProc2") == tv1 ) or
|
||||||
|
( 0xE9 == pykd.ptrByte( int(tv1) ) ) )
|
||||||
|
|
||||||
tv2 = target.module.typedVar( "g_unTypedPtrToFunction" )
|
tv2 = target.module.typedVar( "g_unTypedPtrToFunction" )
|
||||||
self.assertEqual( tv1, tv2 )
|
self.assertEqual( tv1, tv2 )
|
||||||
|
Loading…
Reference in New Issue
Block a user