Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test: fix memory buffer comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Nov 5, 2011
1 parent 9dc67f5 commit c468e2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test-fs.c
Expand Up @@ -1461,7 +1461,9 @@ TEST_IMPL(fs_file_open_append) {
printf("read = %d\n", r);
ASSERT(r == 26);
ASSERT(read_req.result == 26);
ASSERT(memcmp(buf, "test-buffer\n\0test-buffer\n\0", sizeof(buf)) == 0);
ASSERT(memcmp(buf,
"test-buffer\n\0test-buffer\n\0",
sizeof("test-buffer\n\0test-buffer\n\0") - 1) == 0);
uv_fs_req_cleanup(&read_req);

r = uv_fs_close(loop, &close_req, open_req1.result, NULL);
Expand Down

0 comments on commit c468e2a

Please sign in to comment.