From f13d31c7bdede828f5f475573e41f2fd9c51a9fc Mon Sep 17 00:00:00 2001 From: Ilmir Usmanov Date: Fri, 17 Apr 2020 20:43:55 +0200 Subject: [PATCH] Cleanup process in LauncherScriptTest Remove the hack. --- compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt b/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt index a139d8e763e..9b7f7d29b93 100644 --- a/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/cli/LauncherScriptTest.kt @@ -46,7 +46,6 @@ class LauncherScriptTest : TestCaseWithTmpdir() { *quoteIfNeeded(args) ) pb.directory(workDirectory) - pb.environment().remove("_KOTLIN_RUNNER") // FIXME: HACK val process = pb.start() val stdout = StringUtil.convertLineSeparators(process.inputStream.bufferedReader().use { it.readText() }) val stderr = StringUtil.convertLineSeparators(process.errorStream.bufferedReader().use { it.readText() }) @@ -64,6 +63,8 @@ class LauncherScriptTest : TestCaseWithTmpdir() { System.err.println("=== STDERR ===") System.err.println(stderr) throw e + } finally { + process.destroy() } }