2f37328663
Fix some aarch64 emulation bugs and try to tackle qtest failures OBS-URL: https://build.opensuse.org/request/show/230823 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=205
28 lines
871 B
Diff
28 lines
871 B
Diff
From 19fed6c601938b60dafb004f7194ff4e86def6f3 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Andreas=20F=C3=A4rber?= <afaerber@suse.de>
|
|
Date: Thu, 17 Apr 2014 18:38:25 +0200
|
|
Subject: [PATCH] qtest: Add error reporting to socket_accept()
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Andreas Färber <afaerber@suse.de>
|
|
---
|
|
tests/libqtest.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/tests/libqtest.c b/tests/libqtest.c
|
|
index 232f781..4b90d91 100644
|
|
--- a/tests/libqtest.c
|
|
+++ b/tests/libqtest.c
|
|
@@ -93,6 +93,9 @@ static int socket_accept(int sock)
|
|
do {
|
|
ret = accept(sock, (struct sockaddr *)&addr, &addrlen);
|
|
} while (ret == -1 && errno == EINTR);
|
|
+ if (ret == -1) {
|
|
+ fprintf(stderr, "%s failed: %s\n", __func__, strerror(errno));
|
|
+ }
|
|
close(sock);
|
|
|
|
return ret;
|