From 1a769bbb2bcf4f4bfeefde113abaf6f8b5619ad4 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Mon, 13 Apr 2015 17:24:42 +0200 Subject: [PATCH] junit fork: delete temp file on exit --- .../src/com/intellij/rt/execution/junit/JUnitForkedStarter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/junit_rt/src/com/intellij/rt/execution/junit/JUnitForkedStarter.java b/plugins/junit_rt/src/com/intellij/rt/execution/junit/JUnitForkedStarter.java index 27116276ee97..1cb4e9b4f169 100644 --- a/plugins/junit_rt/src/com/intellij/rt/execution/junit/JUnitForkedStarter.java +++ b/plugins/junit_rt/src/com/intellij/rt/execution/junit/JUnitForkedStarter.java @@ -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();