From fa4fa3295d354f8db5f599c886476d97f000533b Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Fri, 10 Jul 2015 15:01:54 +0300 Subject: [PATCH] Setup needs root access --- .../jetbrains/kotlin/idea/test/KotlinCodeInsightTestCase.java | 4 ++-- .../kotlin/idea/debugger/KotlinDebuggerTestCase.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/KotlinCodeInsightTestCase.java b/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/KotlinCodeInsightTestCase.java index cf6072516e0..5eca6676619 100644 --- a/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/KotlinCodeInsightTestCase.java +++ b/idea/idea-test-framework/src/org/jetbrains/kotlin/idea/test/KotlinCodeInsightTestCase.java @@ -23,13 +23,13 @@ import org.jetbrains.kotlin.test.JetTestUtils; public abstract class KotlinCodeInsightTestCase extends CodeInsightTestCase { @Override protected void setUp() throws Exception { - super.setUp(); VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory()); + super.setUp(); } @Override protected void tearDown() throws Exception { - VfsRootAccess.disallowRootAccess(JetTestUtils.getHomeDirectory()); super.tearDown(); + VfsRootAccess.disallowRootAccess(JetTestUtils.getHomeDirectory()); } } diff --git a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java b/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java index ffba4eba0b9..a48c43c5cf4 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java +++ b/idea/tests/org/jetbrains/kotlin/idea/debugger/KotlinDebuggerTestCase.java @@ -73,8 +73,8 @@ public abstract class KotlinDebuggerTestCase extends DescriptorTestCase { @Override protected void setUp() throws Exception { - super.setUp(); VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory()); + super.setUp(); UsefulTestCase.edt(new Runnable() { @Override @@ -110,8 +110,8 @@ public abstract class KotlinDebuggerTestCase extends DescriptorTestCase { @Override protected void tearDown() throws Exception { - VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory()); super.tearDown(); + VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory()); } @SuppressWarnings("AssignmentToStaticFieldFromInstanceMethod")