[0.1.x] ~ corrected structure size

git-svn-id: https://pykd.svn.codeplex.com/svn@73121 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2012-01-12 13:57:49 +00:00 committed by Mikhail I. Izmestev
parent 3ad40a6f1d
commit 4024ce424f
3 changed files with 12 additions and 2 deletions

10
pykd_01_2008.vssscc Normal file
View File

@ -0,0 +1,10 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
}

View File

@ -30,7 +30,7 @@ class TypedVarTest( unittest.TestCase ):
def testGetSize( self ): def testGetSize( self ):
tv1 = target.module.typedVar( "structTest", target.module.g_structTest ) tv1 = target.module.typedVar( "structTest", target.module.g_structTest )
self.assertEqual( 20, tv1.sizeof() ) self.assertEqual( 16 + pykd.ptrSize(), tv1.sizeof() )
tv2 = target.module.typedVar( "structTest[2]", target.module.g_testArray ) tv2 = target.module.typedVar( "structTest[2]", target.module.g_testArray )
self.assertEqual( tv1.sizeof()*2, tv2.sizeof() ) self.assertEqual( tv1.sizeof()*2, tv2.sizeof() )

View File

@ -77,7 +77,7 @@ class TypeInfoTest( unittest.TestCase ):
def testSize( self ): def testSize( self ):
ti1 = target.module.type( "structTest" ) ti1 = target.module.type( "structTest" )
self.assertEqual( 20, ti1.size() ) self.assertEqual( 16 + pykd.ptrSize(), ti1.size() )
self.assertEqual( pykd.ptrSize(), target.module.type("structTest**").size() ) self.assertEqual( pykd.ptrSize(), target.module.type("structTest**").size() )
def testBitField( self ): def testBitField( self ):