From 3202253538879ecd6d35069855017e0a5943a9fd Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 8 Oct 2021 19:12:30 +0200 Subject: Added another test exe name to GetExePath test --- zencore/filesystem.cpp | 4 ++-- 1 file 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)); -- cgit v1.2.3