mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-19 19:13:22 +08:00
[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:
parent
3ad40a6f1d
commit
4024ce424f
10
pykd_01_2008.vssscc
Normal file
10
pykd_01_2008.vssscc
Normal 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"
|
||||
}
|
@ -30,7 +30,7 @@ class TypedVarTest( unittest.TestCase ):
|
||||
|
||||
def testGetSize( self ):
|
||||
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 )
|
||||
self.assertEqual( tv1.sizeof()*2, tv2.sizeof() )
|
||||
|
||||
|
@ -77,7 +77,7 @@ class TypeInfoTest( unittest.TestCase ):
|
||||
|
||||
def testSize( self ):
|
||||
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() )
|
||||
|
||||
def testBitField( self ):
|
||||
|
Loading…
Reference in New Issue
Block a user