From 9b88bc66fc280b7c178aabcacf51664f848246fe Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 31 Aug 2017 02:31:53 +0300 Subject: Remove now useless leak tests in unit tests. --- src/unittests/utils/chatutils.cc | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/unittests/utils/chatutils.cc') diff --git a/src/unittests/utils/chatutils.cc b/src/unittests/utils/chatutils.cc index 69e79db27..64c655f57 100644 --- a/src/unittests/utils/chatutils.cc +++ b/src/unittests/utils/chatutils.cc @@ -55,15 +55,6 @@ PRAGMA48(GCC diagnostic pop) #include "debug.h" -TEST_CASE("chatutils leak test1", "") -{ - logger = new Logger(); - REQUIRE(gui == nullptr); - ResourceManager::cleanOrphans(true); - ResourceManager::deleteInstance(); - delete2(logger); -} - TEST_CASE("chatutils replaceVars", "") { setEnv("SDL_VIDEODRIVER", "dummy"); @@ -276,12 +267,3 @@ TEST_CASE("chatutils textToMe", "") REQUIRE(textToMe("*") == "***"); REQUIRE(textToMe("test line") == "*test line*"); } - -TEST_CASE("chatutils leak test2", "") -{ - logger = new Logger(); - REQUIRE(gui == nullptr); - ResourceManager::cleanOrphans(true); - ResourceManager::deleteInstance(); - delete2(logger); -} -- cgit v1.2.3-70-g09d2