mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
gobject, tests: add tests for autoptr (and lists) with declared
Add tests using an object declared with G_DECLARE_FINAL_TYPE, that is derived from another, declared using G_DECLARE_DERIVABLE_TYPE, and that thus uses _GLIB_DEFINE_AUTOPTR_CHAINUP to define cleanup functions. And verify that both g_autoptr(Type) and g_auto(s)list(Type) work
This commit is contained in:
@@ -51,6 +51,10 @@ gobject_tests = {
|
||||
},
|
||||
}
|
||||
|
||||
if cc.get_id() != 'msvc'
|
||||
gobject_tests += {'autoptr' : {}}
|
||||
endif
|
||||
|
||||
# FIXME: put common bits of test environment() in one location
|
||||
# Not entirely random of course, but at least it changes over time
|
||||
random_number = minor_version + meson.version().split('.').get(1).to_int()
|
||||
|
Reference in New Issue
Block a user