Test space_map_core.

This commit is contained in:
Joe Thornber 2013-01-10 11:21:07 +00:00
parent 9933506a15
commit 44316c5741

View File

@ -43,6 +43,14 @@ namespace {
return tm;
}
class sm_core_creator {
public:
static space_map::ptr
create() {
return space_map::ptr(new persistent_data::core_map(NR_BLOCKS));
}
};
class sm_disk_creator {
public:
static persistent_space_map::ptr
@ -235,6 +243,11 @@ namespace {
//----------------------------------------------------------------
BOOST_AUTO_TEST_CASE(test_sm_core)
{
do_tests<sm_core_creator>(space_map_tests);
}
BOOST_AUTO_TEST_CASE(test_sm_disk)
{
do_tests<sm_disk_creator>(space_map_tests);