On Fri, Mar 20, 2015 at 03:16:59PM -0400, John Snow wrote: > 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 <js...@redhat.com> > Reviewed-by: Max Reitz <mre...@redhat.com> > --- > tests/test-hbitmap.c | 255 > +++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 255 insertions(+)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
pgp00kaz_SWOG.pgp
Description: PGP signature