qtest: implement QTEST_STOP
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Oct 2012 12:18:07 +0000 (14:18 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 5 Oct 2012 13:02:20 +0000 (08:02 -0500)
commite0fea6b1e4df2067a51e08e67a17cb98a547287c
tree4ec93928a7b556b7bf468ac4f91a9eed274b882f
parent610b823ef66b993660f1ab1447a769f190e4f3b3
qtest: implement QTEST_STOP

It is quite difficult to debug qtest test cases without extra wrapper
scripts for QEMU or similar.  This patch adds a simple environment
variable-based trigger that sends a STOP signal to the QEMU instance
under test, before attempting to connect to its QMP session.

This will block execution of the testcase and give time to attach a
debugger to the stopped QEMU process.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
tests/libqtest.c