diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-08-05 11:44:56 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-08-05 11:44:56 +0100 |
commit | 8bfa87a231a846343a33bd817ea002740d84ae51 (patch) | |
tree | 19dc3709cc4ca00b1c69ed6f01f417379898c4c8 /tests | |
parent | fbe400d246cdcdae8d1f64f8be55111dbe4160fd (diff) | |
parent | 27d1b87688dcea8702f06b5240abf6b8d8f53346 (diff) | |
download | qemu-8bfa87a231a846343a33bd817ea002740d84ae51.tar.gz qemu-8bfa87a231a846343a33bd817ea002740d84ae51.tar.bz2 qemu-8bfa87a231a846343a33bd817ea002740d84ae51.zip |
Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging
# gpg: Signature made Fri 05 Aug 2016 10:24:34 BST
# gpg: using RSA key 0x9CA4ABB381AB73C8
# gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>"
# gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>"
# Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8
* remotes/stefanha/tags/block-pull-request:
virtio-blk: Remove stale comment about draining
virtio-blk: Release s->rq queue at system_reset
throttle: Test burst limits lower than the normal limits
throttle: Don't allow burst limits to be lower than the normal limits
block/parallels: check new image size
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-throttle.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-throttle.c b/tests/test-throttle.c index afe094bcc4..363b59a38f 100644 --- a/tests/test-throttle.c +++ b/tests/test-throttle.c @@ -394,6 +394,14 @@ static void test_max_is_missing_limit(void) cfg.buckets[i].max = 0; cfg.buckets[i].avg = 100; g_assert(throttle_is_valid(&cfg, NULL)); + + cfg.buckets[i].max = 30; + cfg.buckets[i].avg = 100; + g_assert(!throttle_is_valid(&cfg, NULL)); + + cfg.buckets[i].max = 100; + cfg.buckets[i].avg = 100; + g_assert(throttle_is_valid(&cfg, NULL)); } } |