aboutsummaryrefslogtreecommitdiff
path: root/tests/libqtest.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-09-03 07:50:26 +0200
committerThomas Huth <thuth@redhat.com>2019-09-05 13:18:52 +0200
commitdd210749727530cdef7c335040edbf81c3c5d041 (patch)
tree0e761474de9ed8bf6a10190a30141edb58cd9182 /tests/libqtest.h
parent0ba67974aff2b42105c93e61b852d90197f37a20 (diff)
downloadqemu-dd210749727530cdef7c335040edbf81c3c5d041.zip
qemu-dd210749727530cdef7c335040edbf81c3c5d041.tar.gz
qemu-dd210749727530cdef7c335040edbf81c3c5d041.tar.bz2
tests/libqtest: Use libqtest-single.h in tests that require global_qtest
Tests that require global_qtest or the related wrapper functions now use the libqtest-single.h header that is dedicated for everything related to global_qtest. The core libqtest.c and libqtest.h files are now completely indepedent from global_qtest, so that the core library is now not depending on a global state anymore. Message-Id: <20190904130047.25808-7-thuth@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/libqtest.h')
-rw-r--r--tests/libqtest.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/libqtest.h b/tests/libqtest.h
index 6a7d7e4..c8cffe5 100644
--- a/tests/libqtest.h
+++ b/tests/libqtest.h
@@ -22,8 +22,6 @@
typedef struct QTestState QTestState;
-extern QTestState *global_qtest;
-
/**
* qtest_initf:
* @fmt...: Format for creating other arguments to pass to QEMU, formatted
@@ -641,8 +639,6 @@ void qtest_add_abrt_handler(GHookFunc fn, const void *data);
void qtest_qmp_assert_success(QTestState *qts, const char *fmt, ...)
GCC_FMT_ATTR(2, 3);
-#include "libqtest-single.h"
-
QDict *qmp_fd_receive(int fd);
void qmp_fd_vsend_fds(int fd, int *fds, size_t fds_num,
const char *fmt, va_list ap) GCC_FMT_ATTR(4, 0);