[vala/wip/ci: 1/5] tests: TypeModule allows registering static types since 2.56



commit 23389346786544720146e76352e176997bbb5e7b
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Feb 24 08:27:38 2019 +0100

    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
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]