diff --git a/test/scripts/customtypestest.py b/test/scripts/customtypestest.py index 55ab8d7..8314191 100644 --- a/test/scripts/customtypestest.py +++ b/test/scripts/customtypestest.py @@ -142,6 +142,11 @@ class CustomTypesTest(unittest.TestCase): struct.append( "m_field7", tb.UInt1B.arrayOf(5) ) 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): tb = pykd.typeBuilder() union = tb.createUnion("MyCustomUnion", align=4)