]> granicus.if.org Git - strace/commit
tests/pread64-pwrite64.c: robustify against os specific issues
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 18 May 2016 09:21:54 +0000 (09:21 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 18 May 2016 09:26:01 +0000 (09:26 +0000)
commitff2b853e7fce27621ef01aacfbccab62f489bf16
tree0cb34598a0333659c3175c0f263fc697f9302239
parenta8e820586ece77fe5430ca089b255f735a92cb6b
tests/pread64-pwrite64.c: robustify against os specific issues

Do not assume that pwrite64 syscall fails when only part of the
specified memory buffer is accessible.  With some kernels, one
accessible byte at the end of page is enough for pwrite64 syscall
to return 1.

* tests/pread64-pwrite64.c (main): Tweak the test that can lead
to a partial write.
tests/pread64-pwrite64.c