From 23389346786544720146e76352e176997bbb5e7b Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sun, 24 Feb 2019 08:27:38 +0100 Subject: [PATCH] tests: TypeModule allows registering static types since 2.56 This prevents fatal runtime testing. --- tests/objects/plugin-module-init.vala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/objects/plugin-module-init.vala b/tests/objects/plugin-module-init.vala index 959991187..cc13e8a07 100644 --- a/tests/objects/plugin-module-init.vala +++ b/tests/objects/plugin-module-init.vala @@ -8,7 +8,10 @@ public GLib.Type init_plugin (TypeModule? m) { } void main () { +// https://bugzilla.gnome.org/show_bug.cgi?id=684282 +#if GLIB_2_56 var o = GLib.Object.new (init_plugin (null)); assert (o is TypeModule); assert (o is Module); +#endif } -- 2.47.2