From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVbfv-00011C-CJ for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:48:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVbfs-0004RE-AO for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:48:51 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:38292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVbfs-0004R4-2n for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:48:48 -0400 Received: by mail-wm0-f49.google.com with SMTP id f67so21485645wmh.1 for ; Thu, 13 Jul 2017 03:48:47 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <3CA8C399-80D0-4BC8-ACC6-FD72A09D9685@skyportsystems.com> References: <1499111049-13721-1-git-send-email-mst@redhat.com> <1499111049-13721-20-git-send-email-mst@redhat.com> <7EC3FA95-777F-4F8F-B02D-85FA09BAFC00@skyportsystems.com> <20170711220915-mutt-send-email-mst@kernel.org> <273a7da7-2243-171f-e96d-39e8e8031984@redhat.com> <3CA8C399-80D0-4BC8-ACC6-FD72A09D9685@skyportsystems.com> From: Peter Maydell Date: Thu, 13 Jul 2017 11:47:25 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 19/21] tests: Add unit tests for the VM Generation ID feature List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ben Warren Cc: Laszlo Ersek , "Michael S. Tsirkin" , Igor Mammedov , QEMU Developers , =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= On 12 July 2017 at 00:43, Ben Warren wrote: > Yes, it=E2=80=99s definitely a setup time problem. With the values that = are checked > in, I can=E2=80=99t get it to fail on my setup, but if I wind the numbers= down I see > the same failure as Peter. So now we have the ages-old problem of =E2=80= =9Cwhat new > arbitrary value should I use that will not cause false failures but will > eventually time out=E2=80=9D. Empirically, we already have an answer to this, in the form of the existing code in tests/boot-sector.c, which is used by both that test and the bios-tables-test.c code to wait for the BIOS initialization to complete, and which doesn't cause false test timeouts in practice. Can we make this test just use that existing function to wait for the BIOS to be done, rather than having its own timeout loop? thanks -- PMM