junit fork: delete temp file on exit

This commit is contained in:
Anna Kozlova
2015-04-13 19:23:49 +02:00
parent eb9efda900
commit 1a769bbb2b
@@ -216,6 +216,7 @@ public class JUnitForkedStarter {
String dynamicClasspath) throws IOException, InterruptedException {
//noinspection SSBasedInspection
final File tempFile = File.createTempFile("fork", "test");
tempFile.deleteOnExit();
final String testOutputPath = tempFile.getAbsolutePath();
final ProcessBuilder builder = new ProcessBuilder();