tests/qtest: libqtest: Exclude the *_fds APIs for win32
commit490081b282766df0e91de3903d948f1eed6fe6d2
authorBin Meng <bin.meng@windriver.com>
Sun, 25 Sep 2022 11:30:12 +0000 (25 19:30 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 27 Sep 2022 18:51:21 +0000 (27 20:51 +0200)
tree3bf9864af963015dfda0f719a796f24612766ac9
parent39f0e991e10706447cad782e0de48ad9724aadf7
tests/qtest: libqtest: Exclude the *_fds APIs for win32

libqmp.c::qmp_fd_vsend_fds() is not available on Windows, hence any
APIs in libqtest that call libqmp.c::qmp_fd_vsend_fds() should be
excluded for win32 too. This includes the following:

  * qtest_qmp_vsend_fds()
  * qtest_vqmp_fds()
  * qtest_qmp_fds()
  * qtest_qmp_add_client()

Note qtest_qmp_vsend() was wrongly written to call qmp_fd_vsend_fds()
previously, but it should call the non fds version API qmp_fd_vsend().

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220925113032.1949844-35-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/libqtest.c
tests/qtest/libqtest.h