From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQs5h-0005sC-Hs for qemu-devel@nongnu.org; Mon, 18 Dec 2017 04:52:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQs5c-00044R-NH for qemu-devel@nongnu.org; Mon, 18 Dec 2017 04:52:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38710) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eQs5c-00043V-GW for qemu-devel@nongnu.org; Mon, 18 Dec 2017 04:52:04 -0500 Date: Mon, 18 Dec 2017 17:51:45 +0800 From: Peter Xu Message-ID: <20171218095145.GS22308@xz-mi> References: <20171205055200.16305-1-peterx@redhat.com> <20171205055200.16305-27-peterx@redhat.com> <20171214144712.GO14433@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20171214144712.GO14433@stefanha-x1.localdomain> Subject: Re: [Qemu-devel] [RFC v5 26/26] tests: qmp-test: add oob test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, Stefan Hajnoczi , "Daniel P . Berrange" , Paolo Bonzini , Fam Zheng , Juan Quintela , mdroth@linux.vnet.ibm.com, Eric Blake , Laurent Vivier , Markus Armbruster , marcandre.lureau@redhat.com, "Dr . David Alan Gilbert" On Thu, Dec 14, 2017 at 02:47:12PM +0000, Stefan Hajnoczi wrote: > On Tue, Dec 05, 2017 at 01:52:00PM +0800, Peter Xu wrote: > > + /* Try a fake capability, it should fail. */ > > + resp = qmp("{ 'execute': 'qmp_capabilities', " > > + " 'arguments': { 'enable': [ 'cap-does-not-exist' ] } }"); > > + g_assert(qdict_haskey(resp, "error")); > > Missing QDECREF(resp) here and throughout the rest of the function. I believe I missed four QDECREF()s. > > Besides that: > > Reviewed-by: Stefan Hajnoczi Hope my counting is correct, then I'll add the r-b. Thanks! -- Peter Xu