From: Rico Tzschichholz Date: Sun, 24 Feb 2019 07:27:38 +0000 (+0100) Subject: tests: TypeModule allows registering static types since 2.56 X-Git-Tag: 0.43.92~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23389346786544720146e76352e176997bbb5e7b;p=thirdparty%2Fvala.git tests: TypeModule allows registering static types since 2.56 This prevents fatal runtime testing. --- 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 }