From: Guillem Jover Date: Tue, 26 Feb 2019 01:09:22 +0000 (+0100) Subject: [PATCH 6/7] harness: The WRITE call does not change across different arches anymore X-Git-Tag: archive/raspbian/0.3.112-13+rpi1~1^2^2^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7a32202f79552a07f6b3344399a98d7486aba1fc;p=libaio.git [PATCH 6/7] harness: The WRITE call does not change across different arches anymore Signed-off-by: Guillem Jover Gbp-Pq: Name 0006-harness-The-WRITE-call-does-not-change-across-differ.patch --- diff --git a/harness/cases/5.t b/harness/cases/5.t index 2b4b4bb..322564a 100644 --- a/harness/cases/5.t +++ b/harness/cases/5.t @@ -41,13 +41,7 @@ int test_main(void) assert(buf != (char *)-1); status |= attempt_rw(rwfd, buf, SIZE, 0, READ, SIZE); - - /* Whether PROT_WRITE is readable is arch-dependent. So compare - * against read result. */ - res = read(rwfd, buf, SIZE); - if (res < 0) - res = -errno; - status |= attempt_rw(rwfd, buf, SIZE, 0, WRITE, res); + status |= attempt_rw(rwfd, buf, SIZE, 0, WRITE, SIZE); return status; }