mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
43b11a91dd
commit
063c23d909
2 changed files with 26 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue