aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-11 10:32:13 +0200
committerMartin Ridgers <[email protected]>2021-10-11 10:32:13 +0200
commit735b478c1425cc9a1e407bf917dc8daa4ab16b11 (patch)
tree6e253ee94a5db9244756571084f3f07472e4e2b3 /zencore/filesystem.cpp
parentFixed undefined mimalloc symbols (diff)
parentiobuffer: Changed MakeFromTemporaryFile so it accepts a path instead of a cha... (diff)
downloadzen-735b478c1425cc9a1e407bf917dc8daa4ab16b11.tar.xz
zen-735b478c1425cc9a1e407bf917dc8daa4ab16b11.zip
Merged main
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index 9936f30ec..c3edf656e 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -842,9 +842,9 @@ TEST_CASE("filesystem")
{
using namespace std::filesystem;
- // GetExePath
+ // GetExePath -- this is not a great test as it's so dependent on where the this code gets linked in
path BinPath = GetRunningExecutablePath();
- const bool ExpectedExe = BinPath.stem() == "zencore-test" || BinPath.stem() == "zenserver-test";
+ const bool ExpectedExe = BinPath.stem() == "zencore-test" || BinPath.stem() == "zenserver-test" || BinPath.stem() == "zenstore-test";
CHECK(ExpectedExe);
CHECK(is_regular_file(BinPath));