Received: from eggs.gnu.org ([2001:4830:134:3::10]:60820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0U0Z-0007Fa-H5 for qemu-devel@nongnu.org; Tue, 07 Jan 2014 05:35:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0U0U-00012e-Kc for qemu-devel@nongnu.org; Tue, 07 Jan 2014 05:35:39 -0500 From: Markus Armbruster References: <1388393215-27511-1-git-send-email-keweihk@gmail.com> <52C20D76.7060301@suse.de> <20140102040856.GB17904@stefanha-thinkpad.redhat.com> Date: Tue, 07 Jan 2014 11:35:27 +0100 In-Reply-To: <20140102040856.GB17904@stefanha-thinkpad.redhat.com> (Stefan Hajnoczi's message of "Thu, 2 Jan 2014 12:08:56 +0800") Message-ID: <8761pw2i6o.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/1] qtest:Fix the bug about disabling vnc causes "make check" hang List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-trivial@nongnu.org, mst@redhat.com, Kewei Yu , Andreas =?utf-8?Q?F=C3=A4rber?= , qemu-devel@nongnu.org Stefan Hajnoczi writes: > On Tue, Dec 31, 2013 at 01:19:02AM +0100, Andreas F=C3=A4rber wrote: >> Am 30.12.2013 09:46, schrieb Kewei Yu: >> > When we disabling vnc from "./configure", the qemu can't use the vnc o= ption. >> > So qtest can't use the "vnc -none ", otherwise "make check" will hang. >> >=20 >> > Signed-off-by: Kewei Yu >> > --- >> > tests/fdc-test.c | 4 ++++ >> > tests/ide-test.c | 11 ++++++++--- >> > 2 files changed, 12 insertions(+), 3 deletions(-) >> >=20 >> > diff --git a/tests/fdc-test.c b/tests/fdc-test.c >> > index 38b5b17..80dbdfb 100644 >> > --- a/tests/fdc-test.c >> > +++ b/tests/fdc-test.c >> > @@ -538,7 +538,11 @@ int main(int argc, char **argv) >> > /* Run the tests */ >> > g_test_init(&argc, &argv, NULL); >> >=20=20 >> > +#ifdef CONFIG_VNC >> > cmdline =3D g_strdup_printf("-vnc none "); >> > +#else >> > + cmdline =3D NULL; >> > +#endif >> >=20=20 >> > qtest_start(cmdline); >> > qtest_irq_intercept_in(global_qtest, "ioapic"); >>=20 >> I have already made -display none a default used by all qtests. >> http://git.qemu.org/?p=3Dqemu.git;a=3Dcommit;h=3D2ad645d2854746b55ddfd1d= 8e951f689cca5d78f >>=20 >> Is there a reason not to do the same for -vnc none? >> That would consolidate the #ifdef'ery to one central point. > > Agreed, let's set -vnc none by default in one place (if enabled by > ./configure). > > I wonder if we should use -nodefaults too? That may require adding some > new options to explicitly set up devices used by existing tests. Try and see what explodes?