diff options
author | Fedor Indutny <fedor@indutny.com> | 2016-05-26 18:10:04 -0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2016-05-26 18:10:04 -0400 |
commit | 48828a62ee235d32c8e53131a55729dea41543ee (patch) | |
tree | 4ca3747bd60c1e82ad51055bac935fc38676b267 /test/src | |
parent | b0a811cf3b097753254170dc6fd08e34f8c2b70d (diff) | |
download | uv_link_t-48828a62ee235d32c8e53131a55729dea41543ee.tar.gz |
uv_link_t: pass source to write/shutdown
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/test-uv-link-source-t.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/src/test-uv-link-source-t.c b/test/src/test-uv-link-source-t.c index 404543a..3187aaf 100644 --- a/test/src/test-uv-link-source-t.c +++ b/test/src/test-uv-link-source-t.c @@ -38,7 +38,9 @@ static void test_writes() { /* .write() should work */ buf = uv_buf_init("x", 1); - CHECK_EQ(uv_link_write(&source.link, &buf, 1, NULL, source_write_cb), 0, + CHECK_EQ(uv_link_write(&source.link, &source.link, &buf, 1, NULL, + source_write_cb), + 0, "source.link.write() should return 0"); CHECK_EQ(uv_run(loop, UV_RUN_DEFAULT), 0, "uv_run()"); |