diff options
author | Amit Shah <amit.shah@redhat.com> | 2009-11-03 16:39:23 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2009-11-04 18:18:24 +0530 |
commit | 14e4a3838013c550319367ccfb3d0476581cd2c3 (patch) | |
tree | a44783446efd7cd6ed67b85a672e4d588f448f6a /auto-virtserial.c | |
parent | 4cfe40d925610d2b365fd25b7a32a60a36ce8dd1 (diff) | |
download | test-virtserial-14e4a3838013c550319367ccfb3d0476581cd2c3.tar.gz test-virtserial-14e4a3838013c550319367ccfb3d0476581cd2c3.tar.xz test-virtserial-14e4a3838013c550319367ccfb3d0476581cd2c3.zip |
auto-test: guest_throttle: check for throttled after sufficient data has been passed out
the check for throttled sometimes fails; for the same reason that
the guest caching test fails: less data is seen and the throttling
condition isn't reached when it should.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'auto-virtserial.c')
-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 f242973..534947f 100644 --- a/auto-virtserial.c +++ b/auto-virtserial.c @@ -564,7 +564,7 @@ static int test_guest_throttle(int nr) ret = poll(pollfd, 1, 2000); if (ret == -1) error(errno, errno, "%s: poll\n", __func__); - } while ((pollfd[0].revents & POLLOUT) && (copied < 1048576)); + } while ((pollfd[0].revents & POLLOUT) && (copied < 1078672)); err = result(__func__, chardevs[nr].throttled, "throttle", pollfd[0].revents & POLLOUT, 0, POLLOUT, OP_EQ, true); @@ -594,7 +594,7 @@ static int test_host_throttle(int nr) ret = guest_write(nr, BUF_LENGTH); if (ret > 0) copied += ret; - } while ((copied < 1048576) && (ret > 0)); + } while ((copied < 1054672) && (ret > 0)); err = result(__func__, chardevs[nr].throttled, "throttle", ret, 0, -ENOSPC, OP_NE, true); |