10 {
11 boost::filesystem::path temp = boost::filesystem::temp_directory_path() / boost::filesystem::unique_path();
12 try {
13 const size_t db_start_size = 8u*1024u*1024u;
14 const size_t db_grow_size = 16u*1024u*1024u;
15 const size_t db_shrunk_size = 2u*1024u*1024u;
16
17 {
19 }
20 {
22 BOOST_CHECK(db.get_free_memory() > db_start_size);
23 }
24 {
26 BOOST_CHECK(db.get_free_memory() > db_start_size);
27 }
28
29 } catch(...) {
30 bfs::remove_all(temp);
31 throw;
32 }
33 bfs::remove_all(temp);
34}