diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/glibext/objhole.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/glibext/objhole.py b/tests/glibext/objhole.py index 09bd8f5..6a7c2e8 100644 --- a/tests/glibext/objhole.py +++ b/tests/glibext/objhole.py @@ -20,3 +20,12 @@ class TestWorks(ChrysalideTestCase): obj.extra = 0x00123000 self.assertEqual(obj.extra, 0x00123000) + + + def testRservedBits(self): + """Check space leaved as available by the GLib.""" + + obj = ThickObject() + + self.assertTrue(obj._GOBJECT_RESERVED_EXTRA_BITS > 0) + self.assertTrue(obj._GOBJECT_RESERVED_EXTRA_BITS < 32) |