]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
D-Bus: Update file descriptor passing test to binding changes
authorJürg Billeter <j@bitron.ch>
Sat, 23 Oct 2010 19:53:34 +0000 (21:53 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 23 Oct 2010 19:53:34 +0000 (21:53 +0200)
tests/dbus/filedescriptor.test

index 50a246dc6c45505982c9df3a12bfe3ef18623e9b..3eeb9ef283f5fc1681d92f500b88edc3a0448967 100644 (file)
@@ -23,10 +23,10 @@ void main () {
        UnixInputStream j, k;
        k = test.test_in (new UnixInputStream (pipe1[0], true), out j);
 
-       assert (j.read (buffer, 1) == 1);
+       assert (j.read (buffer) == 1);
        assert (buffer[0] == 23);
 
-       assert (k.read (buffer, 1) == 1);
+       assert (k.read (buffer) == 1);
        assert (buffer[0] == 11);
 }
 
@@ -37,7 +37,7 @@ class Test : Object {
        public UnixInputStream test_in (UnixInputStream i, out UnixInputStream j) throws IOError {
                uint8[] buffer = new uint8[1];
 
-               assert (i.read (buffer, 1) == 1);
+               assert (i.read (buffer) == 1);
                assert (buffer[0] == 42);
 
                int[] pipe1 = new int[2];