From 565df4c237342cbfd84f87d4c6377c4686fce6b9 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Fri, 8 Apr 2022 22:03:31 +0200 Subject: [PATCH] Fix build of tests --- libdino/tests/testcase.vala | 2 +- plugins/signal-protocol/tests/testcase.vala | 4 ++-- xmpp-vala/tests/testcase.vala | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libdino/tests/testcase.vala b/libdino/tests/testcase.vala index 87147604..59fcf193 100644 --- a/libdino/tests/testcase.vala +++ b/libdino/tests/testcase.vala @@ -48,7 +48,7 @@ public abstract class Gee.TestCase : Object { } public GLib.TestSuite get_suite () { - return this.suite; + return (owned) this.suite; } private class Adaptor { diff --git a/plugins/signal-protocol/tests/testcase.vala b/plugins/signal-protocol/tests/testcase.vala index 061ccc63..59fcf193 100644 --- a/plugins/signal-protocol/tests/testcase.vala +++ b/plugins/signal-protocol/tests/testcase.vala @@ -48,7 +48,7 @@ public abstract class Gee.TestCase : Object { } public GLib.TestSuite get_suite () { - return this.suite; + return (owned) this.suite; } private class Adaptor { @@ -77,4 +77,4 @@ public abstract class Gee.TestCase : Object { this.test_case.tear_down (); } } -} \ No newline at end of file +} diff --git a/xmpp-vala/tests/testcase.vala b/xmpp-vala/tests/testcase.vala index 9bdf5f6b..178b6353 100644 --- a/xmpp-vala/tests/testcase.vala +++ b/xmpp-vala/tests/testcase.vala @@ -56,7 +56,7 @@ public abstract class Gee.TestCase : Object { } public GLib.TestSuite get_suite () { - return this.suite; + return (owned) this.suite; } }