]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: TypeModule allows registering static types since 2.56
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 24 Feb 2019 07:27:38 +0000 (08:27 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 24 Feb 2019 07:28:42 +0000 (08:28 +0100)
This prevents fatal runtime testing.

tests/objects/plugin-module-init.vala

index 9599911879a9899213c723c929e97eaf9e0c84e7..cc13e8a07577bb0bf877b7dfe2f52d8c147335ff 100644 (file)
@@ -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
 }