[vala/wip/ci: 1/5] tests: TypeModule allows registering static types since 2.56
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/ci: 1/5] tests: TypeModule allows registering static types since 2.56
- Date: Sun, 24 Feb 2019 07:30:47 +0000 (UTC)
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]