build: make Java tests run on Linux CI (#1127)

This commit is contained in:
Malte Langkabel
2021-01-11 14:34:28 +01:00
committed by GitHub
parent 2fbe3d68ea
commit f18bef7f73
3 changed files with 41 additions and 0 deletions
+11
View File
@@ -43,7 +43,18 @@ struct EventListener: Catch::TestEventListenerBase
if (!paths.empty())
{
ApplicationSettings::getInstance()->setJavaPath(paths.front());
std::cout << "Java path written to settings: "
<< ApplicationSettings::getInstance()->getJavaPath().str() << std::endl;
}
else
{
std::cout << "no Java" << std::endl;
}
}
else
{
std::cout << "Java path read form settings: "
<< ApplicationSettings::getInstance()->getJavaPath().str() << std::endl;
}
#endif
}