Add test which runs Kotlin compiler in parallel

This will be useful in diagnosing issues like KT-45007 in the future.

 #KT-45007
This commit is contained in:
Alexander Udalov
2021-03-03 21:27:48 +01:00
parent e7e17cdaa9
commit 027df41740
2 changed files with 99 additions and 2 deletions
@@ -104,7 +104,7 @@ public abstract class KotlinIntegrationTestBase extends TestCaseWithTmpdir {
KotlinTestUtils.assertEqualsToFile(expectedFile, normalizedContent);
}
private static int runProcess(GeneralCommandLine commandLine, StringBuilder executionLog) throws ExecutionException {
protected static int runProcess(GeneralCommandLine commandLine, StringBuilder executionLog) throws ExecutionException {
OSProcessHandler handler =
new OSProcessHandler(commandLine.createProcess(), commandLine.getCommandLineString(), commandLine.getCharset());
@@ -132,7 +132,7 @@ public abstract class KotlinIntegrationTestBase extends TestCaseWithTmpdir {
}
}
private static File getJavaRuntime() {
protected static File getJavaRuntime() {
File javaHome = new File(System.getProperty("java.home"));
String javaExe = SystemInfo.isWindows ? "java.exe" : "java";