diff options
author | Ján Tomko <jtomko@redhat.com> | 2016-06-17 14:38:11 +0200 |
---|---|---|
committer | Ján Tomko <jtomko@redhat.com> | 2016-06-20 12:09:39 +0200 |
commit | d728689d9b8ac4dd5b849ebbb0179fb21f24c0ae (patch) | |
tree | 5ad682258501ded4378eb34de777d70708303c24 /tests/virbitmaptest.c | |
parent | ba7c026dab6b9452b15af97d795bfea8d4c8ef83 (diff) | |
download | libvirt-d728689d9b8ac4dd5b849ebbb0179fb21f24c0ae.tar.gz |
Introduce virBitmapParseSeparator
This will be used for the caller that needs to specify a separator.
Currently identical to virBitmapParse.
Also change one test case to use the new function.
Diffstat (limited to 'tests/virbitmaptest.c')
-rw-r--r-- | tests/virbitmaptest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/virbitmaptest.c b/tests/virbitmaptest.c index 00369aff10..5fa13c27ff 100644 --- a/tests/virbitmaptest.c +++ b/tests/virbitmaptest.c @@ -526,7 +526,7 @@ test10(const void *opaque ATTRIBUTE_UNUSED) int ret = -1; virBitmapPtr b1 = NULL, b2 = NULL, b3 = NULL, b4 = NULL; - if (virBitmapParse("0-3,5-8,11-15", 0, &b1, 20) < 0 || + if (virBitmapParseSeparator("0-3,5-8,11-15f16", 'f', &b1, 20) < 0 || virBitmapParse("4,9,10,16-19", 0, &b2, 20) < 0 || virBitmapParse("15", 0, &b3, 20) < 0 || virBitmapParse("0,^0", 0, &b4, 20) < 0) |