This commit is contained in:
2024-10-17 12:24:11 -05:00
parent f932799efa
commit 8561278539
3 changed files with 20 additions and 14 deletions

View File

@ -391,10 +391,9 @@ TEST(utils_path, absolute) {
}
TEST(utils_path, absolute_can_resolve_path_variables) {
std::string home{};
#if defined(_WIN32)
auto home = utils::path::absolute(utils::get_environment_variable("USERPROFILE"));
auto home =
utils::path::absolute(utils::get_environment_variable("USERPROFILE"));
EXPECT_STREQ(home.c_str(), utils::path::absolute("%USERPROFILE%").c_str());
#else // !defined(_WIN32)
auto home = utils::path::absolute(utils::get_environment_variable("HOME"));