Tests: added test for FileIO::GetLibraryFilename

Verify it does not return an empty path
This commit is contained in:
Jake Turner
2018-12-22 17:19:52 +13:00
committed by Baldur Karlsson
parent f0a50cf4cc
commit 0d31fa28ee
+6
View File
@@ -199,6 +199,12 @@ string OSUtility::MakeMachineIdentString(uint64_t ident)
TEST_CASE("Test OS-specific functions", "[osspecific]")
{
SECTION("GetLibraryFilename")
{
std::string libPath;
FileIO::GetLibraryFilename(libPath);
CHECK_FALSE(libPath.empty());
}
SECTION("Environment Variables")
{
const char *var = Process::GetEnvVariable("TMP");