From 3a73fee16e5f6a13436bde48a570ee7cb54b6702 Mon Sep 17 00:00:00 2001 From: Frederik 'playya' Sdun Date: Sun, 10 Jan 2010 02:19:01 +0100 Subject: [PATCH 2/3] Add testcase for async mediator Signed-off-by: Frederik 'playya' Sdun --- tests/Makefile.am | 1 + tests/asynchronous/asyncmediator.vala | 13 +++++++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index e9628cd..a30b3db 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -74,6 +74,7 @@ TESTS = \ asynchronous/bug599568.vala \ asynchronous/bug600827.vala \ asynchronous/bug601558.vala \ + asynchronous/asyncmediator.vala \ dbus/basic-types.test \ dbus/arrays.test \ dbus/structs.test \ diff --git a/tests/asynchronous/asyncmediator.vala b/tests/asynchronous/asyncmediator.vala new file mode 100644 index 0000000..f4463e2 --- /dev/null +++ b/tests/asynchronous/asyncmediator.vala @@ -0,0 +1,13 @@ +public interface IFoo: GLib.Object { + public abstract async void foo (int i); +} + +public class Foo : GLib.Object, IFoo { + IFoo i_foo; + public async void foo (int i) { + yield i_foo.foo(i); + } +} + +void main() { +} -- 1.6.3.3