From: Rico Tzschichholz Date: Mon, 20 Mar 2017 10:37:27 +0000 (+0100) Subject: tests: Additional basic-types tests for dbus X-Git-Tag: 0.37.1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=076e669191cb7a8e62cd5fdba9e615708cc31bfe;p=thirdparty%2Fvala.git tests: Additional basic-types tests for dbus --- diff --git a/tests/dbus/basic-types.test b/tests/dbus/basic-types.test index 9b183f74c..dbe63b13a 100644 --- a/tests/dbus/basic-types.test +++ b/tests/dbus/basic-types.test @@ -6,6 +6,7 @@ Program: client [DBus (name = "org.example.Test")] interface Test : Object { public abstract string test_property { owned get; set; } + public abstract int test_int_property { get; set; } public abstract void test_void () throws IOError; public abstract int test_int (int i, out int j) throws IOError; @@ -31,6 +32,10 @@ void main () { test.test_property = "hello"; t = test.test_property; assert (t == "hello"); + + test.test_int_property = 42; + j = test.test_int_property; + assert (j == 42); } Program: server @@ -38,6 +43,7 @@ Program: server [DBus (name = "org.example.Test")] class Test : Object { public string test_property { owned get; set; } + public int test_int_property { get; set; } public void test_void () { }