Re: [Qemu-devel] [PATCH v3 11/16] test-hbitmap: Add non-advancing iter_next tests

2018-02-28 Thread Fam Zheng
On Wed, 02/28 19:05, Max Reitz wrote: > 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

[Qemu-devel] [PATCH v3 11/16] test-hbitmap: Add non-advancing iter_next tests

2018-02-28 Thread Max Reitz
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_