summaryrefslogtreecommitdiff
path: root/tests/test-vmstate.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-01-30 15:11:19 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2017-02-16 14:06:55 +0100
commita3fd46152ed27e795871e9e5e73ef9c90a16e25e (patch)
treefc8cf5bb87d5dfa30759b7aaf51fddf8af6aa352 /tests/test-vmstate.c
parentb7a4104b73cd02cd014c12e467bc599b69421c7b (diff)
downloadqemu-a3fd46152ed27e795871e9e5e73ef9c90a16e25e.tar.gz
test-vmstate: remove yield_until_fd_readable
The function is not needed anymore now that migration is built on top of QIOChannel. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/test-vmstate.c')
-rw-r--r--tests/test-vmstate.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c
index d0dd390006..39f338a4c4 100644
--- a/tests/test-vmstate.c
+++ b/tests/test-vmstate.c
@@ -33,17 +33,6 @@
static char temp_file[] = "/tmp/vmst.test.XXXXXX";
static int temp_fd;
-/* Fake yield_until_fd_readable() implementation so we don't have to pull the
- * coroutine code as dependency.
- */
-void yield_until_fd_readable(int fd)
-{
- fd_set fds;
- FD_ZERO(&fds);
- FD_SET(fd, &fds);
- select(fd + 1, &fds, NULL, NULL, NULL);
-}
-
/* Duplicate temp_fd and seek to the beginning of the file */
static QEMUFile *open_test_file(bool write)