Whamcloud - gitweb
libext2fs: improve testing coverage of tst_bitmaps
authorTheodore Ts'o <tytso@mit.edu>
Fri, 6 Apr 2012 18:51:09 +0000 (11:51 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Apr 2012 18:29:47 +0000 (14:29 -0400)
commit46f100707c3cd07e271b0c6f5523ec6ca1ac4416
tree6c7405fc80094da805c93ee4ef8dfeecc4ad47e4
parent38792ca78bd4df44cb615bed04512f21945a150a
libext2fs: improve testing coverage of tst_bitmaps

Improve the test coverage of tst_bitmaps by:

   (a) adding the ability to test the legacy (32-bit) bitmap code
   (b) adding tests for ext2fs_find_first_zero_inode_bitmap2() and
       ext2fs_find_first_zero_block_bitmap2()

The recent regressions caused by the addition (and use) of
ext2fs_find_first_zero_inode_bitmap2() would have been caught if we
had added these tests first.  (Another object lesson in why unit tests
are critically important!)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/Makefile.in
lib/ext2fs/tst_bitmaps.c
lib/ext2fs/tst_bitmaps_cmd.ct
lib/ext2fs/tst_bitmaps_cmds
lib/ext2fs/tst_bitmaps_exp