Received: from eggs.gnu.org ([2001:4830:134:3::10]:50906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0qOq-0004hV-3H for qemu-devel@nongnu.org; Mon, 23 Nov 2015 07:39:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0qOp-0005ku-A4 for qemu-devel@nongnu.org; Mon, 23 Nov 2015 07:39:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0qOp-0005kg-5d for qemu-devel@nongnu.org; Mon, 23 Nov 2015 07:39:15 -0500 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 (Postfix) with ESMTPS id C87DCC0A5167 for ; Mon, 23 Nov 2015 12:39:14 +0000 (UTC) From: Kevin Wolf Date: Mon, 23 Nov 2015 13:39:06 +0100 Message-Id: <1448282346-11626-3-git-send-email-kwolf@redhat.com> In-Reply-To: <1448282346-11626-1-git-send-email-kwolf@redhat.com> References: <1448282346-11626-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 2/2] test-aio: Fix event notifier cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, famz@redhat.com, stefanha@redhat.com One test case closed an event notifier (event_notifier_cleanup()) without first disabling it (set_event_notifier(..., NULL)). This resulted in a leftover handle 0 that was added to each subsequent WaitForMultipleObjects() call, causing the function to fail (invalid handle). Signed-off-by: Kevin Wolf --- tests/test-aio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-aio.c b/tests/test-aio.c index 1623803..e188d8c 100644 --- a/tests/test-aio.c +++ b/tests/test-aio.c @@ -393,6 +393,7 @@ static void test_aio_external_client(void) aio_enable_external(ctx); } assert(aio_poll(ctx, false)); + set_event_notifier(ctx, &data.e, NULL); event_notifier_cleanup(&data.e); } } -- 1.8.3.1