summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/browserbox_unittest.cc7
-rw-r--r--src/gui/windowmanager_unittest.cc4
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);