aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-09-29 16:33:24 +0200
committerPer Larsson <[email protected]>2021-09-29 16:33:24 +0200
commiteca6d96ed2858b41f7ca8b8193b3b7fe0a4a51b7 (patch)
tree5d5cfc197d10d6cf3f7b18b196a65bdc1c55838c /zencore/filesystem.cpp
parentRemoved unused field. (diff)
downloadzen-eca6d96ed2858b41f7ca8b8193b3b7fe0a4a51b7.tar.xz
zen-eca6d96ed2858b41f7ca8b8193b3b7fe0a4a51b7.zip
Prevent mesh tests to crash by moving behind define.
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index d1b8b7aeb..e42f94550 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -816,7 +816,8 @@ TEST_CASE("filesystem")
// GetExePath
path BinPath = GetRunningExecutablePath();
- CHECK(BinPath.stem() == "zencore-test");
+ const bool ExpectedExe = BinPath.stem() == "zencore-test" || BinPath.stem() == "zenserver-test";
+ CHECK(ExpectedExe);
CHECK(is_regular_file(BinPath));
// PathFromHandle