aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-11-01 14:38:00 +0100
committerPer Larsson <[email protected]>2021-11-01 14:38:00 +0100
commit835b1a1f2ab4cd7b4044759f1fd151cb8ad0a31d (patch)
treee914510031269ec33e364d7d553316ddb201b059 /zencore/filesystem.cpp
parentFirst pass batch request. (diff)
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-835b1a1f2ab4cd7b4044759f1fd151cb8ad0a31d.tar.xz
zen-835b1a1f2ab4cd7b4044759f1fd151cb8ad0a31d.zip
Merge branch 'main' into zcache-batch
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index b8e8eff55..a642e2cf6 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -840,7 +840,7 @@ TEST_CASE("filesystem")
// 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" || BinPath.stem() == "zenstore-test";
+ const bool ExpectedExe = ToUtf8(BinPath.stem().native()).ends_with("-test"sv) || BinPath.stem() == "zenserver";
CHECK(ExpectedExe);
CHECK(is_regular_file(BinPath));