diff options
author | John Snow <jsnow@redhat.com> | 2015-04-17 19:50:04 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-04-28 15:36:11 +0200 |
commit | a94e87c08cfff73ac4b179adc3d0d9c3b8d2ddef (patch) | |
tree | 6356d593dbe44062cf52924dd1a978acc406683c /softmmu_template.h | |
parent | ce1ffea8cdcea41533bde87759b8390f0e3a9ad3 (diff) |
hbitmap: truncate tests
The general approach is to set bits close to the boundaries of
where we are truncating and ensure that everything appears to
have gone OK.
We test growing and shrinking by different amounts:
- Less than the granularity
- Less than the granularity, but across a boundary
- Less than sizeof(unsigned long)
- Less than sizeof(unsigned long), but across a ulong boundary
- More than sizeof(unsigned long)
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1429314609-29776-17-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'softmmu_template.h')
0 files changed, 0 insertions, 0 deletions