libqtest: make qtest_qmp_add_client work on win32
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 6 Mar 2023 12:27:49 +0000 (16:27 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 13 Mar 2023 11:41:32 +0000 (15:41 +0400)
commit61683d278be8614ba4d5e9cc21226ac50f4f46d0
treebed1e19576f20caf8509bd8af1bb7d12a25a76fc
parent4cda177c6016565dda1f1c3f6cff8ab85ef0d016
libqtest: make qtest_qmp_add_client work on win32

Use the "get-win32-socket" function to pass an opened socket to QEMU,
instead of using "getfd", which relies on socket ancillary FD message
passing.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230306122751.2355515-10-marcandre.lureau@redhat.com>
tests/qtest/libqtest.c
tests/qtest/libqtest.h