diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-03-20 11:37:27 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-05-15 16:53:17 +0200 |
commit | 076e669191cb7a8e62cd5fdba9e615708cc31bfe (patch) | |
tree | 4103213066c8f57349458c22ea7287f94a583a2f /tests/dbus | |
parent | caccf09210ad1c8bc13b5cd4a9c2404758e669af (diff) | |
download | vala-076e669191cb7a8e62cd5fdba9e615708cc31bfe.tar.gz |
tests: Additional basic-types tests for dbus
Diffstat (limited to 'tests/dbus')
-rw-r--r-- | tests/dbus/basic-types.test | 6 |
1 files changed, 6 insertions, 0 deletions
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 () { } |