test-hbitmap: Add non-advancing iter_next tests
commit269576848ec3d57d2d958cf5ac69b08c44adf816
authorMax Reitz <mreitz@redhat.com>
Wed, 13 Jun 2018 18:18:17 +0000 (13 20:18 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 18 Jun 2018 15:04:56 +0000 (18 17:04 +0200)
tree2370da1ef504dd673c1bbb364686e43a644f849b
parenta33fbb4f8b64226becf502a123733776ce319b24
test-hbitmap: Add non-advancing iter_next tests

Add a function that wraps hbitmap_iter_next() and always calls it in
non-advancing mode first, and in advancing mode next.  The result should
always be the same.

By using this function everywhere we called hbitmap_iter_next() before,
we should get good test coverage for non-advancing hbitmap_iter_next().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20180613181823.13618-9-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/test-hbitmap.c