Received: from eggs.gnu.org ([2001:4830:134:3::10]:34969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btyqP-0005BL-JX for qemu-devel@nongnu.org; Tue, 11 Oct 2016 11:19:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btyqI-0004FX-US for qemu-devel@nongnu.org; Tue, 11 Oct 2016 11:19:52 -0400 From: Thomas Huth Date: Tue, 11 Oct 2016 17:19:37 +0200 Message-Id: <1476199177-32411-4-git-send-email-thuth@redhat.com> In-Reply-To: <1476199177-32411-1-git-send-email-thuth@redhat.com> References: <1476199177-32411-1-git-send-email-thuth@redhat.com> Subject: [Qemu-devel] [PATCH 3/3] tests/boot-sector: Increase time-out to 90 seconds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Peter Maydell , Paolo Bonzini Cc: Sascha Silbe , qemu-trivial@nongnu.org, Michael Tsirkin , qemu-ppc@nongnu.org, Victor Kaplansky , David Gibson Since the PXE tester runs rather slow on ppc64 with tcg, there is a chance that we hit the 60 seconds timeout on machines that have a heavy CPU load. So let's increase the timeout to ease the situation. Signed-off-by: Thomas Huth --- tests/boot-sector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/boot-sector.c b/tests/boot-sector.c index 8399314..e3880f4 100644 --- a/tests/boot-sector.c +++ b/tests/boot-sector.c @@ -106,9 +106,9 @@ void boot_sector_test(void) uint16_t signature; int i; - /* Wait at most 1 minute */ + /* Wait at most 90 seconds */ #define TEST_DELAY (1 * G_USEC_PER_SEC / 10) -#define TEST_CYCLES MAX((60 * G_USEC_PER_SEC / TEST_DELAY), 1) +#define TEST_CYCLES MAX((90 * G_USEC_PER_SEC / TEST_DELAY), 1) /* Poll until code has run and modified memory. Once it has we know BIOS * initialization is done. TODO: check that IP reached the halt -- 1.8.3.1