[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:
SND\kernelnet_cp 2011-12-30 12:06:11 +00:00 committed by Mikhail I. Izmestev
parent df1c3afb65
commit 5b3480b29c
2 changed files with 7 additions and 0 deletions

View File

@ -95,3 +95,9 @@ class MemoryTest( unittest.TestCase ):
lst = pykd.loadPtrArray( target.module.arrIntMatrixPtrs, 3 )
self.assertEqual( 3, len( lst ) )
def testInvalidAddr( self ):
try:
pykd.loadSignBytes( 0xDEADBEEF, 5 )
except pykd.MemoryException:
self.assertTrue( True )

View File

@ -21,6 +21,7 @@ class TypedVarTest( unittest.TestCase ):
self.assertEqual( -2, target.module.typedVar( "g_shortValue" ) )
self.assertEqual( -4, target.module.typedVar( "g_longValue" ) )
self.assertEqual( -8, target.module.typedVar( "g_longlongValue" ) )
self.assertEqual( True, target.module.typedVar( "g_constBoolValue" ) )
def testGetAddress( self ):
tv = target.module.typedVar( "structTest", target.module.g_structTest )