if (0 > system ("rm -rf " TESTDIR))
throw std::runtime_error("Failed to clean test work directory");
- Store::Init();
-
MySwapDirPointer aStore (new Fs::Ufs::UFSSwapDir("ufs", "Blocking"));
aStore->IO = new Fs::Ufs::UFSStrategy(DiskIOModule::Find("Blocking")->createStrategy());
CPPUNIT_ASSERT_EQUAL(true, search->isDone());
CPPUNIT_ASSERT_EQUAL(static_cast<StoreEntry *>(nullptr), search->currentItem());
- Store::FreeMemory();
-
free_cachedir(&Config.cacheSwap);
// TODO: here we should test a dirty rebuild
if (0 > system ("rm -rf " TESTDIR))
throw std::runtime_error("Failed to clean test work directory");
- // This assertion may fail if previous test cases fail.
- // Apparently, CPPUNIT_ASSERT* failure may prevent destructors of local
- // objects such as "StorePointer aRoot" from being called.
- CPPUNIT_ASSERT(!store_table); // or StoreHashIndex ctor will abort below
-
- Store::Init();
MySwapDirPointer aStore (new Fs::Ufs::UFSSwapDir("ufs", "Blocking"));
addSwapDir(aStore);
commonInit();
safe_free(config_line);
CPPUNIT_ASSERT(aStore->IO->io != nullptr);
- Store::FreeMemory();
free_cachedir(&Config.cacheSwap);
safe_free(Config.replPolicy->type);
delete Config.replPolicy;