mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[0.1.x] test : found bug in typedVar method
git-svn-id: https://pykd.svn.codeplex.com/svn@72781 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
df1c3afb65
commit
5b3480b29c
@ -95,3 +95,9 @@ class MemoryTest( unittest.TestCase ):
|
|||||||
lst = pykd.loadPtrArray( target.module.arrIntMatrixPtrs, 3 )
|
lst = pykd.loadPtrArray( target.module.arrIntMatrixPtrs, 3 )
|
||||||
self.assertEqual( 3, len( lst ) )
|
self.assertEqual( 3, len( lst ) )
|
||||||
|
|
||||||
|
def testInvalidAddr( self ):
|
||||||
|
try:
|
||||||
|
pykd.loadSignBytes( 0xDEADBEEF, 5 )
|
||||||
|
except pykd.MemoryException:
|
||||||
|
self.assertTrue( True )
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ class TypedVarTest( unittest.TestCase ):
|
|||||||
self.assertEqual( -2, target.module.typedVar( "g_shortValue" ) )
|
self.assertEqual( -2, target.module.typedVar( "g_shortValue" ) )
|
||||||
self.assertEqual( -4, target.module.typedVar( "g_longValue" ) )
|
self.assertEqual( -4, target.module.typedVar( "g_longValue" ) )
|
||||||
self.assertEqual( -8, target.module.typedVar( "g_longlongValue" ) )
|
self.assertEqual( -8, target.module.typedVar( "g_longlongValue" ) )
|
||||||
|
self.assertEqual( True, target.module.typedVar( "g_constBoolValue" ) )
|
||||||
|
|
||||||
def testGetAddress( self ):
|
def testGetAddress( self ):
|
||||||
tv = target.module.typedVar( "structTest", target.module.g_structTest )
|
tv = target.module.typedVar( "structTest", target.module.g_structTest )
|
||||||
|
Loading…
Reference in New Issue
Block a user