Commit c0fabf63 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Adding unit test coverage of search_env_path.

parent 730e8c5d
Pipeline #12769 failed with stages
in 6 minutes and 3 seconds
......@@ -205,3 +205,19 @@ TEST(GetPaths, Basic)
EXPECT_EQ("a", paths[0]);
}
}
TEST(System, SearchEnvPath)
{
std::string app;
std::string blessed;
#ifdef _WIN32
app = "where.exe";
blessed = "c:\\Windows\\System32\\where.exe";
#else
app = "ls";
blessed = "/usr/bin/ls";
#endif
std::string path = search_env_path(app);
EXPECT_EQ(blessed, path);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment