1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

[c::b] +tests project

This commit is contained in:
alexvins
2014-04-02 04:39:15 +00:00
parent 67450dfed6
commit 13f72e581e
3 changed files with 41 additions and 3 deletions

View File

@ -82,8 +82,16 @@ BOOST_AUTO_TEST_CASE(CMapEditManager_DrawTerrain_View)
{
try
{
// Load maps and json config
auto loader = new CFilesystemLoader("test/", ".");
// Load maps and json config
#if defined(__MINGW32__)
const std::string TEST_DATA_DIR = "test/";
#else
const std::string TEST_DATA_DIR = ".";
#endif // defined
auto loader = new CFilesystemLoader("test/", TEST_DATA_DIR);
dynamic_cast<CFilesystemList*>(CResourceHandler::get())->addLoader(loader, false);
const auto originalMap = CMapService::loadMap("test/TerrainViewTest");
auto map = CMapService::loadMap("test/TerrainViewTest");