From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNJdH-0006Qz-07 for qemu-devel@nongnu.org; Tue, 11 Mar 2014 06:10:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNJdA-0004gc-QZ for qemu-devel@nongnu.org; Tue, 11 Mar 2014 06:09:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNJdA-0004gW-JR for qemu-devel@nongnu.org; Tue, 11 Mar 2014 06:09:52 -0400 From: Marcel Apfelbaum Date: Tue, 11 Mar 2014 12:09:08 +0200 Message-Id: <1394532550-21857-1-git-send-email-marcel.a@redhat.com> Subject: [Qemu-devel] [PATCH V2 0/2] tests: Fix possible deadlock in qtest initialization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com, armbru@redhat.com, aliguori@amazon.com, afaerber@suse.de V1 -> V2: Addressed Stefan Hajnoczi's review: - Dropped qtest_state_valid API - Moved socket options in socket_accept. 'socket_accept' waits for Qemu to init its unix socket. If Qemu encounters an error during command line parsing, it can exit before initializing the communication channel. Using a timeout for sockets fixes the issue, but is not enough. We need to know which test from check-qtest-* fails. We tweak the Makefile to produce per-test output. The effect is that the output will grow, but we will know which qtest failed. This helps when an asert is made on other code and not in the test itself. Marcel Apfelbaum (1): tests/libqtest: Fix possible deadlock in qtest initialization Stefan Hajnoczi (1): tests: Tweak the Makefile to produce per-test output. tests/Makefile | 2 +- tests/libqtest.c | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) -- 1.8.3.1