]> git.proxmox.com Git - mirror_qemu.git/commit - tests/test-bitmap.c
test-bitmap: add test for bitmap_set
authorWei Yang <richardw.yang@linux.intel.com>
Thu, 18 Jul 2019 01:04:56 +0000 (09:04 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Jul 2019 17:04:49 +0000 (19:04 +0200)
commit2f950b1e449818ec69ce70a19270f1a039350c2e
tree5629b355cd760b07d98cb4ee343d0060ef8de2c4
parent1849f297f5952ea60ddfd39fe02ce21cba6aa4d8
test-bitmap: add test for bitmap_set

Add a test for bitmap_set. There are three cases:

  * Both start and end is BITS_PER_LONG aligned
  * Only start is BITS_PER_LONG aligned
  * Only end is BITS_PER_LONG aligned

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20190718010456.4234-3-richardw.yang@linux.intel.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/test-bitmap.c