bca080deaf
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
896 B
Diff
28 lines
896 B
Diff
From c58810a9fe080ce5358ab670b6d4abe1202e63a2 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Andreas=20F=C3=A4rber?= <afaerber@suse.de>
|
|
Date: Thu, 17 Apr 2014 18:19:14 +0200
|
|
Subject: [PATCH] qtest: Assure that init_socket()'s listen() does not fail
|
|
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, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/libqtest.c b/tests/libqtest.c
|
|
index 8155695..232f781 100644
|
|
--- a/tests/libqtest.c
|
|
+++ b/tests/libqtest.c
|
|
@@ -72,7 +72,8 @@ static int init_socket(const char *socket_path)
|
|
ret = bind(sock, (struct sockaddr *)&addr, sizeof(addr));
|
|
} while (ret == -1 && errno == EINTR);
|
|
g_assert_no_errno(ret);
|
|
- listen(sock, 1);
|
|
+ ret = listen(sock, 1);
|
|
+ g_assert_no_errno(ret);
|
|
|
|
return sock;
|
|
}
|