Received: from eggs.gnu.org ([2001:4830:134:3::10]:39633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGxUu-0005Qq-MB for qemu-devel@nongnu.org; Fri, 21 Feb 2014 16:19:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGxUn-00086D-P8 for qemu-devel@nongnu.org; Fri, 21 Feb 2014 16:19:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGxUn-000869-Fm for qemu-devel@nongnu.org; Fri, 21 Feb 2014 16:18:57 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1LLIuvx024351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Feb 2014 16:18:56 -0500 Date: Fri, 21 Feb 2014 22:18:53 +0100 From: Kevin Wolf Message-ID: <20140221211853.GF3346@dhcp-200-207.str.redhat.com> References: <1393013113-25367-1-git-send-email-mreitz@redhat.com> <5307B849.9030102@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qcHopEYAB45HaUaB" Content-Disposition: inline In-Reply-To: <5307B849.9030102@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] check-qdict: Test termination of qdict_array_split() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, Stefan Hajnoczi , Max Reitz --qcHopEYAB45HaUaB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am 21.02.2014 um 21:34 hat Eric Blake geschrieben: > On 02/21/2014 01:05 PM, Max Reitz wrote: > > qdict_array_split() should terminate if it encounters both an entry with > > a key of "%u" and entries with keys prefixed "%u." for the same index. > >=20 > > This patch adds a test for this case. > >=20 > > Signed-off-by: Max Reitz > > --- > > This is a followup to my "Extract non-QDicts in qdict_array_split()" se= ries. > >=20 >=20 > > + /* > > + * Test the split of > > + * > > + * { > > + * "0": 42, > > + * "1": 23, > > + * "1.x": 84 > > + * } >=20 > For good measure, I might have included a "2":..., which also does not > get split out (proving that we didn't just skip over 1 and go on to 2, > but actually stopped). But at this point, I think you've covered the > code, so I won't insist. >=20 > Thanks for the extra test: > Reviewed-by: Eric Blake Thanks, applied to the block branch. Kevin --qcHopEYAB45HaUaB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTB8K9AAoJEH8JsnLIjy/WfcMP/1mVDlaVGepRFw3H8Y6xegOw +lEJxouewkyXo/LK/zYwI0zoyoUku5AnijZN2/rSG0i1npPCqYQU8eYTSmyWLk25 FJk58W0/ERo9rpEu/MB0TXpPT+WEcbCQ5Xq/JsDz5vH0TiafzYn8ZEjZYUgsPvXo 4o57gIyOZ4lFAjRZ/42I/xsji/EKOEQHpTAEFcRMOovC30E1MuyWCnhxqzGgZFOf +3Hy8DVgGpT1IbQAN412rOSqjJ3YZnb0r+goa5zOOD0hiH5mT9lfw7W1Ii+0tfDM 8ASxIjmuM7vMZm6NlV9KgKlC+A7Nh3RGFd+v89CnHrPyN9R52AJn2B4eg+RzZt3e fWaZfpaxw7Pp5dyRjt+fO/7BMhOP5t6/bbfXvJIxTbHO1ZimLnx79Ho1JiGVCLYa knJIO3uDC/aoStkwY/EGQNrnsxv5u+x9RiWvjuQExJmRNn8g3I+fDKNjgAoBhHAK Rfz/NiBa8DcKyOswWsxtn38wZcsaYpMDkZMv8fKUGBge3KT9487iAEZOHXMs9+sn B/1Yu7nbw6pefRhME2zrsuc8RH2FVPuCRLkO1Eo5w2WxbYa4FiI6DVZit/G4kyz0 guq/Aga/MdEZhAWc7g8P9ewOHDhHoxe+kNHrt5FtGLbd4WJvkfbiSxxMugNRcygd aEBAm6SNC3m+MJ5p1GM/ =X9KW -----END PGP SIGNATURE----- --qcHopEYAB45HaUaB--