Commit 1b3da0ee authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5889 fix test-pwrite4g


git-svn-id: file:///svn/toku/tokudb@52258 c7de825b-a66e-492c-adef-691d508d4ae1
parent 9e2c8177
......@@ -32,8 +32,8 @@ int test_main(int argc, char *const argv[]) {
char *XMALLOC_N_ALIGNED(512, 512, buf);
strcpy(buf, "hello");
int64_t offset = (1LL<<32) + 512;
toku_os_full_pwrite(fd, buf, sizeof buf, offset);
char newbuf[sizeof buf];
toku_os_full_pwrite(fd, buf, 512, offset);
char newbuf[512];
r = pread(fd, newbuf, sizeof newbuf, 100);
assert(r==sizeof newbuf);
assert(iszero(newbuf, sizeof newbuf));
......@@ -43,7 +43,7 @@ int test_main(int argc, char *const argv[]) {
int64_t fsize;
r = toku_os_get_file_size(fd, &fsize);
assert(r == 0);
assert(fsize > 100 + (signed)sizeof(buf));
assert(fsize > 100 + 512);
toku_free(buf);
r = close(fd);
assert(r==0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment