Commit 1193d469 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

fix a linux test refs[t:2212]

git-svn-id: file:///svn/toku/tokudb@16116 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2f4fb9a9
/* Verify that toku_os_pwrite does the right thing when writing beyond 4GB. */
/* Verify that toku_os_full_pwrite does the right thing when writing beyond 4GB. */
#include <fcntl.h>
#include <test.h>
#include <assert.h>
......@@ -20,8 +20,7 @@ int test_main(int argc, char *argv[]) {
assert(fd>=0);
char buf[] = "hello";
int64_t offset = (1LL<<32) + 100;
r = toku_os_pwrite(fd, buf, sizeof buf, offset);
assert(r==sizeof buf);
toku_os_full_pwrite(fd, buf, sizeof buf, offset);
char newbuf[sizeof buf];
r = pread(fd, newbuf, sizeof newbuf, 100);
assert(r==sizeof newbuf);
......
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