diff options
| author | Stefan Boberg <[email protected]> | 2021-10-08 19:12:30 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-08 19:12:30 +0200 |
| commit | 3202253538879ecd6d35069855017e0a5943a9fd (patch) | |
| tree | 6e69c651661c56a6172ce237d3e076c13e513b7b /zencore/filesystem.cpp | |
| parent | filecas: stress test code to understand access denied errors (diff) | |
| download | zen-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.cpp | 4 |
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)); |