From 7a32202f79552a07f6b3344399a98d7486aba1fc Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 26 Feb 2019 02:09:22 +0100 Subject: [PATCH] [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 --- harness/cases/5.t | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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; } -- 2.30.2