mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
junit: prepare to debug in fork mode
This commit is contained in:
@@ -201,6 +201,7 @@ public abstract class JavaTestFrameworkRunnableState<T extends ModuleBasedConfig
|
||||
return javaParameters;
|
||||
}
|
||||
|
||||
protected ServerSocket myForkSocket;
|
||||
protected void appendForkInfo(Executor executor) throws ExecutionException {
|
||||
final String forkMode = getForkMode();
|
||||
if (Comparing.strEqual(forkMode, "none")) {
|
||||
@@ -250,6 +251,9 @@ public abstract class JavaTestFrameworkRunnableState<T extends ModuleBasedConfig
|
||||
writer.close();
|
||||
}
|
||||
|
||||
if (getRunnerSettings() instanceof DebuggingRunnerData) {
|
||||
myForkSocket = new ServerSocket(0, 0, InetAddress.getByName("127.0.0.1"));
|
||||
}
|
||||
passForkMode(forkMode, tempFile);
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user