]> granicus.if.org Git - strace/commit
tests/read-write.c: robustify against os specific issues
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 18 May 2016 09:14:12 +0000 (09:14 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 18 May 2016 09:26:01 +0000 (09:26 +0000)
commita8e820586ece77fe5430ca089b255f735a92cb6b
tree619453f0b82c24278dd35812f94663a3e745f49d
parentaf09d4f4facede21f5832fc49630c3e899738acc
tests/read-write.c: robustify against os specific issues

Do not assume that write 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 write syscall to return 1.

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