summaryrefslogtreecommitdiff
path: root/tests/test-throttle.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-03-21 11:58:21 +0100
committerKevin Wolf <kwolf@redhat.com>2016-05-19 16:45:29 +0200
commit49d2165d7d6b589d1ea28b15a8874c417bdc55ed (patch)
tree0675ea93a6e3f00293ded704b7e6eb63bd231b6d /tests/test-throttle.c
parent31dce3ccca98bc9f9eb57f8b08b008edd07661ba (diff)
block: Convert throttle_group_get_name() to BlockBackend
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/test-throttle.c')
-rw-r--r--tests/test-throttle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-throttle.c b/tests/test-throttle.c
index beaa2a3518..1a322f1897 100644
--- a/tests/test-throttle.c
+++ b/tests/test-throttle.c
@@ -598,8 +598,8 @@ static void test_groups(void)
g_assert(bdrv2->throttle_state != NULL);
g_assert(bdrv3->throttle_state != NULL);
- g_assert(!strcmp(throttle_group_get_name(bdrv1), "bar"));
- g_assert(!strcmp(throttle_group_get_name(bdrv2), "foo"));
+ g_assert(!strcmp(throttle_group_get_name(blk1), "bar"));
+ g_assert(!strcmp(throttle_group_get_name(blk2), "foo"));
g_assert(bdrv1->throttle_state == bdrv3->throttle_state);
/* Setting the config of a group member affects the whole group */