summaryrefslogtreecommitdiff
path: root/src/unittests/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-31 02:31:53 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-31 02:31:53 +0300
commit9b88bc66fc280b7c178aabcacf51664f848246fe (patch)
treed388c11064c8fc78d9fafc9095fe95d60bd7e120 /src/unittests/utils
parentf17e42fb8460c910cff344eb0656c665f761e0fb (diff)
downloadplus-9b88bc66fc280b7c178aabcacf51664f848246fe.tar.gz
plus-9b88bc66fc280b7c178aabcacf51664f848246fe.tar.bz2
plus-9b88bc66fc280b7c178aabcacf51664f848246fe.tar.xz
plus-9b88bc66fc280b7c178aabcacf51664f848246fe.zip
Remove now useless leak tests in unit tests.
Diffstat (limited to 'src/unittests/utils')
-rw-r--r--src/unittests/utils/chatutils.cc18
-rw-r--r--src/unittests/utils/translation/poparser.cc18
-rw-r--r--src/unittests/utils/xmlutils.cc18
3 files changed, 0 insertions, 54 deletions
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);
-}
diff --git a/src/unittests/utils/translation/poparser.cc b/src/unittests/utils/translation/poparser.cc
index a299617e9..bca391ee6 100644
--- a/src/unittests/utils/translation/poparser.cc
+++ b/src/unittests/utils/translation/poparser.cc
@@ -47,15 +47,6 @@
#include "debug.h"
-TEST_CASE("PoParser leak test1", "")
-{
- logger = new Logger();
- REQUIRE(gui == nullptr);
- ResourceManager::cleanOrphans(true);
- ResourceManager::deleteInstance();
- delete2(logger);
-}
-
TEST_CASE("PoParser tests", "PoParser")
{
setEnv("SDL_VIDEODRIVER", "dummy");
@@ -147,12 +138,3 @@ TEST_CASE("PoParser tests", "PoParser")
delete2(logger);
// VirtFs::deinit();
}
-
-TEST_CASE("PoParser leak test2", "")
-{
- logger = new Logger();
- REQUIRE(gui == nullptr);
- ResourceManager::cleanOrphans(true);
- ResourceManager::deleteInstance();
- delete2(logger);
-}
diff --git a/src/unittests/utils/xmlutils.cc b/src/unittests/utils/xmlutils.cc
index 526ed216e..7a82a502c 100644
--- a/src/unittests/utils/xmlutils.cc
+++ b/src/unittests/utils/xmlutils.cc
@@ -44,15 +44,6 @@
#include "debug.h"
-TEST_CASE("xmlutils leak test1", "")
-{
- logger = new Logger();
- REQUIRE(gui == nullptr);
- ResourceManager::cleanOrphans(true);
- ResourceManager::deleteInstance();
- delete2(logger);
-}
-
TEST_CASE("xmlutils readXmlIntVector 1", "")
{
setEnv("SDL_VIDEODRIVER", "dummy");
@@ -225,12 +216,3 @@ TEST_CASE("xmlutils readXmlIntMap 1", "")
delete2(logger);
// VirtFs::deinit();
}
-
-TEST_CASE("xmlutils leak test2", "")
-{
- logger = new Logger();
- REQUIRE(gui == nullptr);
- ResourceManager::cleanOrphans(true);
- ResourceManager::deleteInstance();
- delete2(logger);
-}