diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-06-19 18:45:14 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-10-24 18:03:18 +0200 |
commit | 063c23d909a8d6c9f251347514e34835e0510294 (patch) | |
tree | 99085c7859fd6183ff6c4abd6e69990f58ce0dfa /tests/libqtest.h | |
parent | 43b11a91dd861a946b231b89b7542856ade23d1b (diff) | |
download | qemu-063c23d909a8d6c9f251347514e34835e0510294.tar.gz qemu-063c23d909a8d6c9f251347514e34835e0510294.tar.bz2 qemu-063c23d909a8d6c9f251347514e34835e0510294.zip |
qtest: add qtest_add_abrt_handler()
Allow a test to add abort handlers, use GHook for all handlers.
There is currently no way to remove a handler, but it could be
later added if needed.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
Diffstat (limited to 'tests/libqtest.h')
-rw-r--r-- | tests/libqtest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libqtest.h b/tests/libqtest.h index 9818ef712d..df087452ee 100644 --- a/tests/libqtest.h +++ b/tests/libqtest.h @@ -450,6 +450,8 @@ void qtest_add_data_func(const char *str, const void *data, void (*fn)); g_free(path); \ } while (0) +void qtest_add_abrt_handler(void (*fn), const void *data); + /** * qtest_start: * @args: other arguments to pass to QEMU |