aboutsummaryrefslogtreecommitdiff
path: root/zenserver
diff options
context:
space:
mode:
Diffstat (limited to 'zenserver')
-rw-r--r--zenserver/cache/structuredcachestore.cpp2
-rw-r--r--zenserver/zenserver.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index f582b61d8..3189a14cc 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -2145,7 +2145,7 @@ ZenCacheStore::ZenCacheStore(CasGc& Gc, const Configuration& Configuration)
std::vector<std::string> Namespaces;
for (const std::filesystem::path& DirPath : DirContent.Directories)
{
- std::string DirName = PathToUtf8(DirPath.stem());
+ std::string DirName = PathToUtf8(DirPath.filename());
if (DirName.starts_with(NamespaceDiskPrefix))
{
Namespaces.push_back(DirName.substr(NamespaceDiskPrefix.length()));
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp
index b965a9bf3..a924d9c81 100644
--- a/zenserver/zenserver.cpp
+++ b/zenserver/zenserver.cpp
@@ -50,9 +50,8 @@ ZEN_THIRD_PARTY_INCLUDES_END
// in some shared code into the executable
#if ZEN_WITH_TESTS
-# define DOCTEST_CONFIG_IMPLEMENT
+# define ZEN_TEST_WITH_RUNNER
# include <zencore/testing.h>
-# undef DOCTEST_CONFIG_IMPLEMENT
#endif
//////////////////////////////////////////////////////////////////////////
@@ -1164,7 +1163,7 @@ test_main(int argc, char** argv)
zen::MaximizeOpenFileCount();
- return doctest::Context(argc, argv).run();
+ return ZEN_RUN_TESTS(argc, argv);
}
#endif