aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-08 19:12:30 +0200
committerStefan Boberg <[email protected]>2021-10-08 19:12:30 +0200
commit3202253538879ecd6d35069855017e0a5943a9fd (patch)
tree6e69c651661c56a6172ce237d3e076c13e513b7b /zencore/filesystem.cpp
parentfilecas: stress test code to understand access denied errors (diff)
downloadzen-3202253538879ecd6d35069855017e0a5943a9fd.tar.xz
zen-3202253538879ecd6d35069855017e0a5943a9fd.zip
Added another test exe name to GetExePath test
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 745fe0779..b8e8eff55 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -838,9 +838,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));