diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2011-11-11 16:29:02 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:22:03 +0100 |
commit | 648e66254271611596f6dd8c777e67e2e62fe1c2 (patch) | |
tree | 3050c00c14e1ddb5c51e02b09aa52f79e9afb095 /unit/util.c | |
parent | 75447e66477ab57e89eab03f4eae31fc82485605 (diff) | |
download | bluez-648e66254271611596f6dd8c777e67e2e62fe1c2.tar.gz |
gobex: add unit test for CONNECT followed by PUT request with random data
Note that in order to work the buffer had to be increased to OBEX maximum
MTU otherwise test_io_cb would be sending responses for each fragment it
has read which may not constitute a full packet.
Diffstat (limited to 'unit/util.c')
-rw-r--r-- | unit/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unit/util.c b/unit/util.c index 578865406..e8f202495 100644 --- a/unit/util.c +++ b/unit/util.c @@ -132,7 +132,7 @@ gboolean test_io_cb(GIOChannel *io, GIOCondition cond, gpointer user_data) struct test_data *d = user_data; GIOStatus status; gsize bytes_written, rbytes, send_buf_len, expect_len; - char buf[255]; + char buf[65535]; const char *send_buf, *expect; expect = d->recv[d->count].data; |