summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/unittests/fs/virtfs/virtfs.cc4
-rw-r--r--src/unittests/fs/virtfs/virtfs1_enumerate.cc4
-rw-r--r--src/unittests/gui/windowmanager.cc19
3 files changed, 14 insertions, 13 deletions
diff --git a/src/unittests/fs/virtfs/virtfs.cc b/src/unittests/fs/virtfs/virtfs.cc
index 5bdfda2ea..d316b4ac5 100644
--- a/src/unittests/fs/virtfs/virtfs.cc
+++ b/src/unittests/fs/virtfs/virtfs.cc
@@ -256,8 +256,8 @@ TEST_CASE("VirtFs enumerateFiles1", "")
VirtFs::List *list = nullptr;
- const int cnt1 = VirtFs::exists("test/test2.txt") ? 28 : 27;
- const int cnt2 = 28;
+ const int cnt1 = VirtFs::exists("test/test2.txt") ? 29 : 28;
+ const int cnt2 = 29;
VirtFs::permitLinks(false);
list = VirtFs::enumerateFiles("test");
diff --git a/src/unittests/fs/virtfs/virtfs1_enumerate.cc b/src/unittests/fs/virtfs/virtfs1_enumerate.cc
index 22db74cb2..25f523adf 100644
--- a/src/unittests/fs/virtfs/virtfs1_enumerate.cc
+++ b/src/unittests/fs/virtfs/virtfs1_enumerate.cc
@@ -82,8 +82,8 @@ TEST_CASE("VirtFs1 enumerateFiles1", "")
VirtFs::List *list = nullptr;
- const int cnt1 = VirtFs::exists("test/test2.txt") ? 28 : 27;
- const int cnt2 = 28;
+ const int cnt1 = VirtFs::exists("test/test2.txt") ? 29 : 28;
+ const int cnt2 = 29;
VirtFs::permitLinks(false);
list = VirtFs::enumerateFiles("test");
diff --git a/src/unittests/gui/windowmanager.cc b/src/unittests/gui/windowmanager.cc
index fb937f0b4..fa708648b 100644
--- a/src/unittests/gui/windowmanager.cc
+++ b/src/unittests/gui/windowmanager.cc
@@ -60,6 +60,7 @@
#include "gui/windows/buydialog.h"
#include "gui/windows/buyingstoreselldialog.h"
#include "gui/windows/buyselldialog.h"
+#include "gui/windows/charcreatedialog.h"
#include "gui/windows/charselectdialog.h"
#include "gui/windows/changeemaildialog.h"
#include "gui/windows/changepassworddialog.h"
@@ -323,15 +324,15 @@ TEST_CASE("Windows tests", "windowmanager")
}
SECTION("CharCreateDialog")
{
-// LoginData data;
-// CharSelectDialog *dialog2;
-// CREATEWIDGETV(dialog2, CharSelectDialog, data);
-// CharCreateDialog *dialog;
-// CREATEWIDGETV(dialog, CharCreateDialog, dialog2, 0);
-// gui->draw();
-// mainGraphics->updateScreen();
-// delete2(dialog);
-// delete2(dialog2);
+ LoginData data;
+ CharSelectDialog *dialog2;
+ CREATEWIDGETV(dialog2, CharSelectDialog, data);
+ CharCreateDialog *dialog;
+ CREATEWIDGETV(dialog, CharCreateDialog, dialog2, 0);
+ gui->draw();
+ mainGraphics->updateScreen();
+ delete2(dialog);
+ delete2(dialog2);
}
SECTION("ChatWindow")
{