File 0040-qtest-Increase-socket-timeout-to-ac.patch of Package qemu.29142

From: Bruce Rogers <brogers@suse.com>
Date: Thu, 1 May 2014 09:37:36 -0600
Subject: qtest: Increase socket timeout to accomodate unpredictable build
 service

After encountering make check errors for some time, it appears that the
problem is the occasional socket timeout, which is probably due to a
combination of a slow and overloaded build host in the build service.

Increase the timeout from 5 to 15 seconds and hope we don't see the
problem again.

Signed-off-by: Bruce Rogers <brogers@suse.com>
---
 tests/libqtest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/libqtest.c b/tests/libqtest.c
index b12a9e4ca94d36fd9dffa030578b..8de01c07e9c87e55b71c36f3d9e9 100644
--- a/tests/libqtest.c
+++ b/tests/libqtest.c
@@ -27,7 +27,7 @@
 #include "qapi/qmp/qjson.h"
 
 #define MAX_IRQ 256
-#define SOCKET_TIMEOUT 5
+#define SOCKET_TIMEOUT 15
 
 QTestState *global_qtest;
 
openSUSE Build Service is sponsored by