From a4dc0e9c2b9aff1f2d6f131f263f809ee254443b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 20 Nov 2015 20:38:57 +0300 Subject: Fix unit tests. --- src/animatedsprite_unittest.cc | 4 ++-- src/gui/windowmanager_unittest.cc | 4 ++-- src/utils/files_unittest.cc | 4 ++-- src/utils/xmlutils_unittest.cc | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/animatedsprite_unittest.cc b/src/animatedsprite_unittest.cc index 3256f6dc7..a2e8bfd9f 100644 --- a/src/animatedsprite_unittest.cc +++ b/src/animatedsprite_unittest.cc @@ -46,8 +46,8 @@ TEST_CASE("AnimatedSprite tests", "animatedsprite") SDL_Init(SDL_INIT_VIDEO); logger = new Logger(); ResourceManager::init(); - resourceManager->addToSearchPath("data", false); - resourceManager->addToSearchPath("../data", false); + resourceManager->addToSearchPath("data", Append_false); + resourceManager->addToSearchPath("../data", Append_false); imageHelper = new SDLImageHelper(); SDL_SetVideoMode(640, 480, 0, SDL_ANYFORMAT | SDL_SWSURFACE); diff --git a/src/gui/windowmanager_unittest.cc b/src/gui/windowmanager_unittest.cc index 89fcca928..9b686568c 100644 --- a/src/gui/windowmanager_unittest.cc +++ b/src/gui/windowmanager_unittest.cc @@ -69,8 +69,8 @@ TEST_CASE("Windows tests", "windowmanager") SDL_Init(SDL_INIT_VIDEO); logger = new Logger(); ResourceManager::init(); - resourceManager->addToSearchPath("data", false); - resourceManager->addToSearchPath("../data", false); + resourceManager->addToSearchPath("data", Append_false); + resourceManager->addToSearchPath("../data", Append_false); mainGraphics = new SDLGraphics; imageHelper = new SDLImageHelper; userPalette = new UserPalette; diff --git a/src/utils/files_unittest.cc b/src/utils/files_unittest.cc index 50805b173..3d880f511 100644 --- a/src/utils/files_unittest.cc +++ b/src/utils/files_unittest.cc @@ -35,8 +35,8 @@ TEST_CASE("Files renameFile", "files") dirSeparator = "/"; logger = new Logger(); ResourceManager::init(); - resourceManager->addToSearchPath("data", false); - resourceManager->addToSearchPath("../data", false); + resourceManager->addToSearchPath("data", Append_false); + resourceManager->addToSearchPath("../data", Append_false); const int sz = 1234567; char *buf = new char[sz]; diff --git a/src/utils/xmlutils_unittest.cc b/src/utils/xmlutils_unittest.cc index 97cbd93a8..de65f60fa 100644 --- a/src/utils/xmlutils_unittest.cc +++ b/src/utils/xmlutils_unittest.cc @@ -39,8 +39,8 @@ TEST_CASE("xmlutils readXmlIntVector 1") XML::initXML(); logger = new Logger(); ResourceManager::init(); - resourceManager->addToSearchPath("data", false); - resourceManager->addToSearchPath("../data", false); + resourceManager->addToSearchPath("data", Append_false); + resourceManager->addToSearchPath("../data", Append_false); std::vector arr; -- cgit v1.2.3-70-g09d2