qtest: Keep list of qtest instances for SIGABRT handler
commitd766825190615bc0b1b57d2837475cdec1a075de
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 27 Mar 2014 14:09:50 +0000 (27 15:09 +0100)
committerAndreas Färber <afaerber@suse.de>
Mon, 31 Mar 2014 20:20:04 +0000 (31 22:20 +0200)
tree036da6bdfae603dbb3af40facf8535fbf90bba68
parent96b8ca47f8f21ba32a60930cddbf5da27d36b20d
qtest: Keep list of qtest instances for SIGABRT handler

Keep track of active qtest instances so we can kill them when the test
aborts.  This ensures no QEMU processes are left running after test
failure.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
tests/libqtest.c