[PATCH 12/15] tests: Update preadv test in order to reflect changed behaviour

Eugene Syromyatnikov evgsyr at gmail.com
Sat Oct 15 01:26:02 UTC 2016


Since iovecs themselves are printed evan syscall has failed now, test is
updated to reflect this. It is notable, though, that this is the only
place where this case is checked.

* tests/preadv.c: Update output for the case when preadv with singe-item
iovec failed.
---
 tests/preadv.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/preadv.c b/tests/preadv.c
index eb53a5e..2243eb8 100644
--- a/tests/preadv.c
+++ b/tests/preadv.c
@@ -82,7 +82,8 @@ main(void)
 
 	if (preadv(0, iov, 1, -1) != -1)
 		perror_msg_and_fail("preadv");
-	printf("preadv(0, %p, 1, -1) = -1 EINVAL (%m)\n", iov);
+	printf("preadv(0, [{iov_base=%p, iov_len=%zu}], 1, -1) = "
+	       "-1 EINVAL (%m)\n", iov->iov_base, iov->iov_len);
 
 	if (preadv(0, NULL, 1, -2) != -1)
 		perror_msg_and_fail("preadv");
-- 
1.7.10.4





More information about the Strace-devel mailing list