[0.2.x]/[0.3.x] + test (failed)

git-svn-id: https://pykd.svn.codeplex.com/svn@87101 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2014-01-20 16:38:22 +00:00 committed by Mikhail I. Izmestev
parent 9ac635b5d3
commit 58df54763b

View File

@ -142,6 +142,11 @@ class CustomTypesTest(unittest.TestCase):
struct.append( "m_field7", tb.UInt1B.arrayOf(5) ) struct.append( "m_field7", tb.UInt1B.arrayOf(5) )
self.assertEqual( 20, struct.size() ) self.assertEqual( 20, struct.size() )
struct = tb.createStruct(name ="MyAlignStruct", align=1)
struct.append( "m_field1", tb.UInt1B )
struct.append( "m_field2", tb.UInt8B )
self.assertEqual( 9, struct.size() )
def testUnionAlignedSize(self): def testUnionAlignedSize(self):
tb = pykd.typeBuilder() tb = pykd.typeBuilder()
union = tb.createUnion("MyCustomUnion", align=4) union = tb.createUnion("MyCustomUnion", align=4)