testWithPathVar(workingDirPath("__NON_EXISTING___###__").toString() + PATH_SEP +
MULTIPLE_IN_ONE_PATH.toString());
}
protected void testWithPathVar(String pathsString) {
SearchCompilersOnPathOperation compilerSearch = new SearchCompilersOnPathOperation() {
@Override
protected void handleWarning(String message) {
assertFail();
}
};
compilerSearch.searchPathsString(pathsString, "_dummy_");
List<CompilerInstall> foundInstalls = compilerSearch.getFoundInstalls();
assertTrue(foundInstalls.size() == 2);
checkInstall(foundInstalls.get(0), MULTIPLE_IN_ONE_PATH.resolve("gdc"), ECompilerType.GDC,
MULTIPLE_IN_ONE_PATH.getParent(),
list("include/d/4.6.1/"));