Setup needs root access
This commit is contained in:
+2
-2
@@ -23,13 +23,13 @@ import org.jetbrains.kotlin.test.JetTestUtils;
|
|||||||
public abstract class KotlinCodeInsightTestCase extends CodeInsightTestCase {
|
public abstract class KotlinCodeInsightTestCase extends CodeInsightTestCase {
|
||||||
@Override
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
|
||||||
VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory());
|
VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory());
|
||||||
|
super.setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
VfsRootAccess.disallowRootAccess(JetTestUtils.getHomeDirectory());
|
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
|
VfsRootAccess.disallowRootAccess(JetTestUtils.getHomeDirectory());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,8 +73,8 @@ public abstract class KotlinDebuggerTestCase extends DescriptorTestCase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void setUp() throws Exception {
|
protected void setUp() throws Exception {
|
||||||
super.setUp();
|
|
||||||
VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory());
|
VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory());
|
||||||
|
super.setUp();
|
||||||
|
|
||||||
UsefulTestCase.edt(new Runnable() {
|
UsefulTestCase.edt(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
@@ -110,8 +110,8 @@ public abstract class KotlinDebuggerTestCase extends DescriptorTestCase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void tearDown() throws Exception {
|
protected void tearDown() throws Exception {
|
||||||
VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory());
|
|
||||||
super.tearDown();
|
super.tearDown();
|
||||||
|
VfsRootAccess.allowRootAccess(JetTestUtils.getHomeDirectory());
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("AssignmentToStaticFieldFromInstanceMethod")
|
@SuppressWarnings("AssignmentToStaticFieldFromInstanceMethod")
|
||||||
|
|||||||
Reference in New Issue
Block a user