]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Additional basic-types tests for dbus
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 20 Mar 2017 10:37:27 +0000 (11:37 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 15 May 2017 14:53:17 +0000 (16:53 +0200)
tests/dbus/basic-types.test

index 9b183f74cbbddd11275c8272872bb7dab6148c15..dbe63b13a467a5aac29b45c689e328ec5b71868a 100644 (file)
@@ -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 () {
        }