summary refs log tree commit diff stats
path: root/tests/qtest/migration-helpers.h
diff options
context:
space:
mode:
authorBin Meng <bin.meng@windriver.com>2022-08-24 17:39:59 +0800
committerThomas Huth <thuth@redhat.com>2022-08-25 15:24:09 +0200
commitd7613ee2165769303d0fa31069c4b6a840f0dae2 (patch)
treed8447a7f78e8dedfb8ea2dc605baa687c54c980b /tests/qtest/migration-helpers.h
parent8b1525b702448396fa3e1b61ff05ae029e367dae (diff)
downloadfocaccia-qemu-d7613ee2165769303d0fa31069c4b6a840f0dae2.tar.gz
focaccia-qemu-d7613ee2165769303d0fa31069c4b6a840f0dae2.zip
tests/qtest: migration-test: Skip running test_migrate_fd_proto on win32
The test case 'test_migrate_fd_proto' calls socketpair() which does
not exist on win32. Exclude it. The helper function wait_command_fd()
is not needed anymore, hence exclude it too.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20220824094029.1634519-22-bmeng.cn@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/migration-helpers.h')
-rw-r--r--tests/qtest/migration-helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qtest/migration-helpers.h b/tests/qtest/migration-helpers.h
index 59561898d0..db0684de48 100644
--- a/tests/qtest/migration-helpers.h
+++ b/tests/qtest/migration-helpers.h
@@ -17,8 +17,10 @@
 
 extern bool got_stop;
 
+#ifndef _WIN32
 G_GNUC_PRINTF(3, 4)
 QDict *wait_command_fd(QTestState *who, int fd, const char *command, ...);
+#endif
 
 G_GNUC_PRINTF(2, 3)
 QDict *wait_command(QTestState *who, const char *command, ...);