]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/test-vmstate.c
test-vmstate: remove yield_until_fd_readable
[mirror_qemu.git] / tests / test-vmstate.c
index d0dd3900067207cd43216226fc364e9db5f2f92e..39f338a4c4c212bee0c2e2c71cbd81ac28ae4d51 100644 (file)
 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)