From 95ea191442279f2f8b3b642d215bf873f3500909 Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Wed, 3 Aug 2016 16:45:19 +0300 Subject: [PATCH] Fix handling after ScriptTest execution: clean up temporary files on exit hooks Test "testStandardScriptWithSaving" uses classloader and prevents from deleting temporary files on windows --- compiler/tests/org/jetbrains/kotlin/scripts/ScriptTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/tests/org/jetbrains/kotlin/scripts/ScriptTest.kt b/compiler/tests/org/jetbrains/kotlin/scripts/ScriptTest.kt index d36c4e46060..f681fe44717 100644 --- a/compiler/tests/org/jetbrains/kotlin/scripts/ScriptTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/scripts/ScriptTest.kt @@ -34,6 +34,7 @@ import org.jetbrains.kotlin.script.StandardScriptDefinition import org.jetbrains.kotlin.test.ConfigurationKind import org.jetbrains.kotlin.test.KotlinTestUtils import org.jetbrains.kotlin.test.TestJdkKind +import org.jetbrains.kotlin.test.testFramework.KtUsefulTestCase import org.jetbrains.kotlin.utils.PathUtil import org.junit.Assert import org.junit.Test @@ -41,7 +42,7 @@ import java.io.File import java.lang.reflect.InvocationTargetException import java.net.URLClassLoader -class ScriptTest: TestCase() { +class ScriptTest : KtUsefulTestCase() { @Test fun testScriptWithParam() { val aClass = compileScript("fib.kts", SimpleParamsTestScriptDefinition(".kts", numIntParam()))