summaryrefslogtreecommitdiffstats
path: root/tests/libqtest.c
diff options
context:
space:
mode:
authorPeter Maydell2017-08-10 11:05:29 +0200
committerPeter Maydell2017-08-10 11:05:29 +0200
commit8a6be122e4eec029501a0d61f104fca3a5ae6f30 (patch)
treea47e36f4fe6dad3c0361032ff552ebb0ce9eb1b6 /tests/libqtest.c
parentUpdate version for v2.10.0-rc2 release (diff)
parentlibqtest: always set up signal handler for SIGABRT (diff)
downloadqemu-8a6be122e4eec029501a0d61f104fca3a5ae6f30.tar.gz
qemu-8a6be122e4eec029501a0d61f104fca3a5ae6f30.tar.xz
qemu-8a6be122e4eec029501a0d61f104fca3a5ae6f30.zip
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging
pc, vhost: fixes for rc3 Fix up bugs and warnings in tests. Revert an experimental commit that I put in by mistake: harmless but useless. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> # gpg: Signature made Wed 09 Aug 2017 02:23:17 BST # gpg: using RSA key 0x281F0DB8D28D5469 # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>" # gpg: aka "Michael S. Tsirkin <mst@redhat.com>" # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17 0970 C350 3912 AFBE 8E67 # Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA 8A0D 281F 0DB8 D28D 5469 * remotes/mst/tags/for_upstream: libqtest: always set up signal handler for SIGABRT libvhost-user: quit when no more data received net: fix -netdev socket,fd= for UDP sockets Revert "cpu: add APIs to allocate/free CPU environment" acpi-test: update expected DSDT files Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/libqtest.c')
-rw-r--r--tests/libqtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libqtest.c b/tests/libqtest.c
index 4a5492a603..b9a1f180e1 100644
--- a/tests/libqtest.c
+++ b/tests/libqtest.c
@@ -140,8 +140,8 @@ void qtest_add_abrt_handler(GHookFunc fn, const void *data)
/* Only install SIGABRT handler once */
if (!abrt_hooks.is_setup) {
g_hook_list_init(&abrt_hooks, sizeof(GHook));
- setup_sigabrt_handler();
}
+ setup_sigabrt_handler();
hook = g_hook_alloc(&abrt_hooks);
hook->func = fn;