]> git.proxmox.com Git - mirror_qemu.git/commit
qtest: kill QEMU process on g_assert() failure
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 17 Feb 2014 15:33:35 +0000 (16:33 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 19 Feb 2014 14:45:51 +0000 (15:45 +0100)
commitb15d422a23a3e4cf1b4195af209211eccdb88d51
treecc7076f950a07749ba9aef323b2e6b514ca5d9f6
parentcef60c925c41563721dc73b1ace7b2f399f72a5b
qtest: kill QEMU process on g_assert() failure

The QEMU process stays running if the test case fails.  This patch fixes
the leak by installing a SIGABRT signal handler which invokes
qtest_end().

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
tests/libqtest.c