File 0054-qtest-Increase-socket-timeout-to-ac.patch of Package qemu.3217

From 8ff6d222d12361c0f098532edce2822ababc85e0 Mon Sep 17 00:00:00 2001
From: Bruce Rogers <brogers@suse.com>
Date: Thu, 1 May 2014 09:37:36 -0600
Subject: [PATCH] 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 71468ac..1eb9db6 100644
--- a/tests/libqtest.c
+++ b/tests/libqtest.c
@@ -34,7 +34,7 @@
 #include "qapi/qmp/json-parser.h"
 
 #define MAX_IRQ 256
-#define SOCKET_TIMEOUT 5
+#define SOCKET_TIMEOUT 15
 
 QTestState *global_qtest;
 
openSUSE Build Service is sponsored by