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/gui/widgets/browserbox_unittest.cc | |
parent | dffd0a4a8e99196ad27f8fde2430b09dd29cac57 (diff) | |
download | manaverse-40de3bee0278d6584561a827123bc342934adccb.tar.gz manaverse-40de3bee0278d6584561a827123bc342934adccb.tar.bz2 manaverse-40de3bee0278d6584561a827123bc342934adccb.tar.xz manaverse-40de3bee0278d6584561a827123bc342934adccb.zip |
Add support for additional unit test library doctest.
Diffstat (limited to 'src/gui/widgets/browserbox_unittest.cc')
-rw-r--r-- | src/gui/widgets/browserbox_unittest.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc index 2c2a4f58f..f4a27c1e8 100644 --- a/src/gui/widgets/browserbox_unittest.cc +++ b/src/gui/widgets/browserbox_unittest.cc @@ -37,6 +37,7 @@ #include "gui/widgets/browserbox.h" #include "utils/delete2.h" +#include "utils/env.h" #include "render/sdlgraphics.h" @@ -48,7 +49,7 @@ extern const char *dirSeparator; -TEST_CASE("BrowserBox leak test1") +TEST_CASE("BrowserBox leak test1", "") { logger = new Logger(); REQUIRE(gui == nullptr); @@ -59,6 +60,8 @@ TEST_CASE("BrowserBox leak test1") TEST_CASE("BrowserBox tests", "browserbox") { + setEnv("SDL_VIDEODRIVER", "dummy"); + client = new Client; logger = new Logger(); VirtFs::mountDirSilent("data", Append_false); @@ -199,7 +202,7 @@ TEST_CASE("BrowserBox tests", "browserbox") // VirtFs::deinit(); } -TEST_CASE("BrowserBox leak test2") +TEST_CASE("BrowserBox leak test2", "") { logger = new Logger(); REQUIRE(gui == nullptr); |