From aaf0fbdbd6f0692c16460ab5d63bd0fbff8fc752 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Mon, 15 Apr 2019 11:35:04 +0200 Subject: [PATCH] Fix debugger tests --- .../kotlin/idea/debugger/KotlinDebuggerTestCase.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java b/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java index 5674e893f73..b5da456908d 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java +++ b/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java @@ -70,7 +70,17 @@ public abstract class KotlinDebuggerTestCase extends DescriptorTestCase { // LOCAL_CACHE_DIR removing can be used to force caches invalidating as well. private static final boolean LOCAL_CACHE_REUSE = true; - private static final File LOCAL_CACHE_DIR = new File("out/debuggerTinyApp"); + private static final File LOCAL_CACHE_DIR; + + static { + try { + LOCAL_CACHE_DIR = KotlinTestUtils.tmpDir("debuggerTinyApp"); + } + catch (IOException e) { + throw new RuntimeException(e); + } + } + private static final File LOCAL_CACHE_JAR_DIR = new File(LOCAL_CACHE_DIR, "jar"); private static final File LOCAL_CACHE_APP_DIR = new File(LOCAL_CACHE_DIR, "app"); private static final File LOCAL_CACHE_LAST_MODIFIED_FILE = new File(LOCAL_CACHE_DIR, "lastModified.txt");