[vala] D-Bus: Update file descriptor passing test to binding changes
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Update file descriptor passing test to binding changes
- Date: Sat, 23 Oct 2010 19:55:20 +0000 (UTC)
commit 826ccef88353135bb668dd8d02e253c9798e120c
Author: Jürg Billeter <j bitron ch>
Date: Sat Oct 23 21:53:34 2010 +0200
D-Bus: Update file descriptor passing test to binding changes
tests/dbus/filedescriptor.test | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/dbus/filedescriptor.test b/tests/dbus/filedescriptor.test
index 50a246d..3eeb9ef 100644
--- a/tests/dbus/filedescriptor.test
+++ b/tests/dbus/filedescriptor.test
@@ -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];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]