From 16c2ade228de8b5494c779574d632a60c3a549d2 Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@hadrons.org>
Date: Tue, 26 Feb 2019 02:09:22 +0100
Subject: [PATCH libaio v2 6/7] harness: The WRITE call does not change across
 different arches anymore

Signed-off-by: Guillem Jover <guillem@hadrons.org>
---
 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.22.0.657.g960e92d24f

