Received: from eggs.gnu.org ([2001:4830:134:3::10]:36957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZjCK-0005Ev-F4 for qemu-devel@nongnu.org; Thu, 02 Oct 2014 12:25:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZjCE-0006R4-Ay for qemu-devel@nongnu.org; Thu, 02 Oct 2014 12:25:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZjCD-0006Qd-Oy for qemu-devel@nongnu.org; Thu, 02 Oct 2014 12:25:38 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s92GPb8P018060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 2 Oct 2014 12:25:37 -0400 From: Markus Armbruster References: <1412261496-24455-1-git-send-email-armbru@redhat.com> <1412261496-24455-7-git-send-email-armbru@redhat.com> <542D7181.8060408@redhat.com> Date: Thu, 02 Oct 2014 18:25:34 +0200 In-Reply-To: <542D7181.8060408@redhat.com> (Eric Blake's message of "Thu, 02 Oct 2014 09:38:41 -0600") Message-ID: <87k34i4ewx.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 6/6] blockdev-test: Test device_del after drive_del List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Eric Blake writes: > On 10/02/2014 08:51 AM, Markus Armbruster wrote: >> Executed in this order, drive_del and device_del's automatic drive >> deletion take notoriously tricky special paths. >> >> Signed-off-by: Markus Armbruster >> --- >> tests/drive_del-test.c | 32 ++++++++++++++++++++++++++++++++ >> 1 file changed, 32 insertions(+) >> >> diff --git a/tests/drive_del-test.c b/tests/drive_del-test.c > >> + /* Complication: ignore DEVICE_DELETED event */ >> + qmp_discard_response("{'execute': 'device_del'," > > Still not a fan of single quotes in QMP, but it's existing style. > > >> +static void test_drive_del_device_del(void) >> +{ >> + /* Start with a drive used by an device that unplugs instantaneously */ > > s/an device/a device/ > > New tests are always good; with the typo fix: > Reviewed-by: Eric Blake I'll get that fixed, either on commit, or via respin. Thanks!