diff options
author | Amit Shah <amit.shah@redhat.com> | 2011-05-24 13:59:08 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2011-05-24 13:59:08 +0530 |
commit | 3b9eb5f918c7bcf929f89c293494e5066a81dfba (patch) | |
tree | 262a30ba82770406f81a3a2d075d222c1cc6f92f | |
parent | 77647df304e9c939d621e4f32423a1b50991b676 (diff) | |
download | test-virtserial-3b9eb5f918c7bcf929f89c293494e5066a81dfba.tar.gz test-virtserial-3b9eb5f918c7bcf929f89c293494e5066a81dfba.tar.xz test-virtserial-3b9eb5f918c7bcf929f89c293494e5066a81dfba.zip |
auto-test: Bump poll timeout to 10s for guest->host big file
It might take a while for the host to clear out the data from the vq to
a file on disk. The current timeout of 5s causes the poll to timeout
quite frequently recently, so bump it to 10s.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
-rw-r--r-- | auto-virtserial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auto-virtserial.c b/auto-virtserial.c index 560a3e4..43daf3d 100644 --- a/auto-virtserial.c +++ b/auto-virtserial.c @@ -1357,8 +1357,8 @@ static int test_threaded_read_write(int nr) pollfd[0].fd = chardevs[nr].sock; pollfd[0].events = POLLOUT; - /* Wait for 5s to see if guest writes out something */ - ret = poll(pollfd, 1, 5000); + /* Wait for 10s to see if guest writes out something */ + ret = poll(pollfd, 1, 10000); if (ret == -1) error(errno, errno, "%s: poll\n", __func__); if (!(pollfd[0].revents & POLLOUT)) |