summaryrefslogtreecommitdiff
path: root/tests/virbitmaptest.c
diff options
context:
space:
mode:
authorJán Tomko <jtomko@redhat.com>2016-06-17 15:12:02 +0200
committerJán Tomko <jtomko@redhat.com>2016-06-20 12:09:52 +0200
commitdc56b3a7ce5eceaeb12e2b3ef7fe2989580ffa6e (patch)
tree0cc773755a014074e7e67fc66043a839a941cb82 /tests/virbitmaptest.c
parentff52e9d43aba0d4e47c740799d3b9931069bfb8f (diff)
downloadlibvirt-dc56b3a7ce5eceaeb12e2b3ef7fe2989580ffa6e.tar.gz
Introduce virBitmapParseUnlimited
For parsing a bitmap of an unknown size.
Diffstat (limited to 'tests/virbitmaptest.c')
-rw-r--r--tests/virbitmaptest.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/virbitmaptest.c b/tests/virbitmaptest.c
index 89c41d00c7..009fa0dad3 100644
--- a/tests/virbitmaptest.c
+++ b/tests/virbitmaptest.c
@@ -632,12 +632,19 @@ test12(const void *opaque ATTRIBUTE_UNUSED)
TEST_MAP(151, "100");
+ virBitmapFree(map);
+ if (virBitmapParseUnlimited("34,1023", &map) < 0)
+ goto cleanup;
+
+ TEST_MAP(1024, "34,1023");
+
ret = 0;
cleanup:
virBitmapFree(map);
return ret;
}
+
#undef TEST_MAP