diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-18 22:51:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-18 22:53:01 +0300 |
commit | 40de3bee0278d6584561a827123bc342934adccb (patch) | |
tree | 460ba68f29ec25377ef1971989c4c46e507ea3da /src/utils/xmlutils_unittest.cc | |
parent | dffd0a4a8e99196ad27f8fde2430b09dd29cac57 (diff) | |
download | plus-40de3bee0278d6584561a827123bc342934adccb.tar.gz plus-40de3bee0278d6584561a827123bc342934adccb.tar.bz2 plus-40de3bee0278d6584561a827123bc342934adccb.tar.xz plus-40de3bee0278d6584561a827123bc342934adccb.zip |
Add support for additional unit test library doctest.
Diffstat (limited to 'src/utils/xmlutils_unittest.cc')
-rw-r--r-- | src/utils/xmlutils_unittest.cc | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/utils/xmlutils_unittest.cc b/src/utils/xmlutils_unittest.cc index eaf3097f3..eb6ec15aa 100644 --- a/src/utils/xmlutils_unittest.cc +++ b/src/utils/xmlutils_unittest.cc @@ -30,6 +30,7 @@ #include "gui/gui.h" #include "utils/delete2.h" +#include "utils/env.h" #include "utils/xmlutils.h" #include "render/sdlgraphics.h" @@ -40,7 +41,7 @@ #include "debug.h" -TEST_CASE("xmlutils leak test1") +TEST_CASE("xmlutils leak test1", "") { logger = new Logger(); REQUIRE(gui == nullptr); @@ -49,8 +50,10 @@ TEST_CASE("xmlutils leak test1") delete2(logger); } -TEST_CASE("xmlutils readXmlIntVector 1") +TEST_CASE("xmlutils readXmlIntVector 1", "") { + setEnv("SDL_VIDEODRIVER", "dummy"); + client = new Client; XML::initXML(); logger = new Logger(); @@ -94,8 +97,10 @@ TEST_CASE("xmlutils readXmlIntVector 1") // VirtFs::deinit(); } -TEST_CASE("xmlutils readXmlStringMap 1") +TEST_CASE("xmlutils readXmlStringMap 1", "") { + setEnv("SDL_VIDEODRIVER", "dummy"); + client = new Client; XML::initXML(); logger = new Logger(); @@ -138,8 +143,10 @@ TEST_CASE("xmlutils readXmlStringMap 1") // VirtFs::deinit(); } -TEST_CASE("xmlutils readXmlIntMap 1") +TEST_CASE("xmlutils readXmlIntMap 1", "") { + setEnv("SDL_VIDEODRIVER", "dummy"); + client = new Client; XML::initXML(); logger = new Logger(); @@ -186,7 +193,7 @@ TEST_CASE("xmlutils readXmlIntMap 1") // VirtFs::deinit(); } -TEST_CASE("xmlutils leak test2") +TEST_CASE("xmlutils leak test2", "") { logger = new Logger(); REQUIRE(gui == nullptr); |