diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-01-03 16:16:35 -0800 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-01-04 14:01:24 -0800 |
commit | e6fc4c1bcba459dfd56f2d2019e24bfbaf29a493 (patch) | |
tree | d929ce30f4212c4a8d38c41fa750a37ed0c63f71 /tests | |
parent | 17c160a8ee7dd6a3eaaaea1bda93e7d5e9912a64 (diff) | |
download | gobject-introspection-e6fc4c1bcba459dfd56f2d2019e24bfbaf29a493.tar.gz |
scanner: Replace GInitiallyUnowned field sharing with generic solution
Remove GInitiallyUnowned special case in gdumpparser where fields are
copied from GObject. Add generic solution where anytime we have multiple
typedef structs, the fields become shared:
typedef struct _Foo Foo;
typedef struct _Foo Bar;
struct _Foo {...};
https://bugzilla.gnome.org/show_bug.cgi?id=581525
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/test_transformer.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/scanner/test_transformer.py b/tests/scanner/test_transformer.py index 7f4f98de..39c54a4d 100644 --- a/tests/scanner/test_transformer.py +++ b/tests/scanner/test_transformer.py @@ -157,8 +157,8 @@ class TestStructTypedefs(unittest.TestCase): shared = self.namespace.get('StructAlias') self.assertTrue(shared is not None) self.assertTrue(isinstance(shared, ast.Record)) - self.assertTrue(shared.disguised) - self.assertEqual(len(shared.fields), 0) + self.assertFalse(shared.disguised) + self.assertEqual(len(shared.fields), 1) self.assertEqual(shared.ctype, 'TestStructAlias') def test_struct_tag_aliases_after(self): @@ -181,8 +181,8 @@ class TestStructTypedefs(unittest.TestCase): shared = self.namespace.get('StructAlias') self.assertTrue(shared is not None) self.assertTrue(isinstance(shared, ast.Record)) - self.assertTrue(shared.disguised) - self.assertEqual(len(shared.fields), 0) + self.assertFalse(shared.disguised) + self.assertEqual(len(shared.fields), 1) self.assertEqual(shared.ctype, 'TestStructAlias') def test_struct_pointer(self): |