aboutsummaryrefslogtreecommitdiff
path: root/tests/test-write-threshold.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-write-threshold.c')
-rw-r--r--tests/test-write-threshold.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-write-threshold.c b/tests/test-write-threshold.c
index 97ca12f710..4cf032652d 100644
--- a/tests/test-write-threshold.c
+++ b/tests/test-write-threshold.c
@@ -64,6 +64,8 @@ static void test_threshold_not_trigger(void)
req.offset = 1024;
req.bytes = 1024;
+ assert(bdrv_check_request(req.offset, req.bytes) == 0);
+
bdrv_write_threshold_set(&bs, threshold);
amount = bdrv_write_threshold_exceeded(&bs, &req);
g_assert_cmpuint(amount, ==, 0);
@@ -82,6 +84,8 @@ static void test_threshold_trigger(void)
req.offset = (4 * 1024 * 1024) - 1024;
req.bytes = 2 * 1024;
+ assert(bdrv_check_request(req.offset, req.bytes) == 0);
+
bdrv_write_threshold_set(&bs, threshold);
amount = bdrv_write_threshold_exceeded(&bs, &req);
g_assert_cmpuint(amount, >=, 1024);