projects
/
libaio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db05b4a
)
[PATCH 6/7] harness: The WRITE call does not change across different arches anymore
author
Guillem Jover
<guillem@hadrons.org>
Tue, 26 Feb 2019 01:09:22 +0000
(
02:09
+0100)
committer
Guillem Jover
<guillem@debian.org>
Tue, 26 Feb 2019 04:26:21 +0000
(
04:26
+0000)
Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0006-harness-The-WRITE-call-does-not-change-across-differ.patch
harness/cases/5.t
patch
|
blob
|
history
diff --git
a/harness/cases/5.t
b/harness/cases/5.t
index 2b4b4bb44cc2d18a21b736630d9f911693b4e884..322564abcb7ba28b4288e083fdfad1821425f5de 100644
(file)
--- 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;
}