summary refs log tree commit diff stats
path: root/tests/unit/test-string-input-visitor.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2021-02-23 14:46:45 +0000
committerKevin Wolf <kwolf@redhat.com>2021-03-08 14:55:19 +0100
commite1fa7f5591c219a94f039754f6fbe58e757e7af6 (patch)
treedaddd47ae57e0512543abc820d828e66ffd03361 /tests/unit/test-string-input-visitor.c
parent7a23c523762371fd26a7a9ecfa8f16b64618a1ad (diff)
downloadfocaccia-qemu-e1fa7f5591c219a94f039754f6fbe58e757e7af6.tar.gz
focaccia-qemu-e1fa7f5591c219a94f039754f6fbe58e757e7af6.zip
libqtest: add qtest_remove_abrt_handler()
Add a function to remove previously-added abrt handler functions.

Now that a symmetric pair of add/remove functions exists we can also
balance the SIGABRT handler installation. The signal handler was
installed each time qtest_add_abrt_handler() was called. Now it is
installed when the abrt handler list becomes non-empty and removed again
when the list becomes empty.

The qtest_remove_abrt_handler() function will be used by
vhost-user-blk-test.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20210223144653.811468-5-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/unit/test-string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions