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 | |
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/gui')
-rw-r--r-- | src/gui/widgets/browserbox_unittest.cc | 7 | ||||
-rw-r--r-- | src/gui/windowmanager_unittest.cc | 4 |
2 files changed, 7 insertions, 4 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); diff --git a/src/gui/windowmanager_unittest.cc b/src/gui/windowmanager_unittest.cc index 094dab380..2196fb973 100644 --- a/src/gui/windowmanager_unittest.cc +++ b/src/gui/windowmanager_unittest.cc @@ -131,7 +131,7 @@ extern QuitDialog *quitDialog; -TEST_CASE("windows leak test1") +TEST_CASE("windows leak test1", "") { logger = new Logger(); REQUIRE(gui == nullptr); @@ -878,7 +878,7 @@ TEST_CASE("WindowManager", "create windows") // VirtFs::deinit(); } -TEST_CASE("windows leak test2") +TEST_CASE("windows leak test2", "") { logger = new Logger(); REQUIRE(gui == nullptr); |