Received: from eggs.gnu.org ([2001:4830:134:3::10]:59273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpIKQ-0005T7-Qk for qemu-devel@nongnu.org; Wed, 19 Jun 2013 09:21:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpIKP-0001Pm-J4 for qemu-devel@nongnu.org; Wed, 19 Jun 2013 09:21:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpIKP-0001Nj-Bg for qemu-devel@nongnu.org; Wed, 19 Jun 2013 09:21:37 -0400 From: Markus Armbruster References: <1371627895-27046-1-git-send-email-armbru@redhat.com> <1371627895-27046-3-git-send-email-armbru@redhat.com> <51C1A5DF.109@suse.de> Date: Wed, 19 Jun 2013 15:21:34 +0200 In-Reply-To: <51C1A5DF.109@suse.de> ("Andreas =?utf-8?Q?F=C3=A4rber=22's?= message of "Wed, 19 Jun 2013 14:36:47 +0200") Message-ID: <87fvwe5j8h.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 2/2] libqtest: New qtest_end() to go with qtest_start() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?utf-8?Q?F=C3=A4rber?= Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org Andreas F=C3=A4rber writes: > Am 19.06.2013 09:44, schrieb Markus Armbruster: [...] >> diff --git a/tests/libqtest.h b/tests/libqtest.h >> index 437bda3..329325b 100644 >> --- a/tests/libqtest.h >> +++ b/tests/libqtest.h >> @@ -17,6 +17,7 @@ >> #ifndef LIBQTEST_H >> #define LIBQTEST_H >>=20=20 >> +#include >> #include >> #include >> #include >> @@ -318,6 +319,12 @@ static inline QTestState *qtest_start(const char *a= rgs) >> return global_qtest; >> } >>=20=20 >> +static inline void qtest_end(void) >> +{ >> + qtest_quit(global_qtest); >> + global_qtest =3D NULL; >> +} >> + >> /** >> * qmp: >> * @fmt...: QMP message to send to qemu >>=20 > > Function and usage looks fine, but please add a gtk-doc comment. > qtest_start() does have one. Oversight, will fix, thanks!