From 4202abac6368e96ea7f43e95c8473540e31ef562 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Thu, 26 Jan 2017 23:19:42 +0300 Subject: [PATCH] Fix test --- idea/testData/kdoc/multiModuleSamples/simple/samples/EMPTY | 0 .../tests/org/jetbrains/kotlin/idea/kdoc/KDocSampleTest.kt | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 idea/testData/kdoc/multiModuleSamples/simple/samples/EMPTY diff --git a/idea/testData/kdoc/multiModuleSamples/simple/samples/EMPTY b/idea/testData/kdoc/multiModuleSamples/simple/samples/EMPTY new file mode 100644 index 00000000000..e69de29bb2d diff --git a/idea/tests/org/jetbrains/kotlin/idea/kdoc/KDocSampleTest.kt b/idea/tests/org/jetbrains/kotlin/idea/kdoc/KDocSampleTest.kt index cf421bfec66..3739675f755 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/kdoc/KDocSampleTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/kdoc/KDocSampleTest.kt @@ -19,10 +19,12 @@ package org.jetbrains.kotlin.idea.kdoc import com.intellij.codeInsight.documentation.DocumentationManager import com.intellij.openapi.util.io.FileUtil import com.intellij.openapi.util.text.StringUtil +import com.intellij.openapi.vfs.newvfs.impl.VfsRootAccess import com.intellij.rt.execution.junit.FileComparisonFailure import org.jetbrains.kotlin.idea.editor.quickDoc.AbstractQuickDocProviderTest.wrapToFileComparisonFailure import org.jetbrains.kotlin.idea.stubs.AbstractMultiModuleTest import org.jetbrains.kotlin.test.InTextDirectivesUtils +import org.jetbrains.kotlin.test.KotlinTestUtils import java.io.File class KDocSampleTest : AbstractMultiModuleTest() { @@ -30,6 +32,11 @@ class KDocSampleTest : AbstractMultiModuleTest() { override val testPath: String = "${super.testPath}/kdoc/multiModuleSamples/" override fun getTestDataPath() = testPath + override fun setUp() { + VfsRootAccess.allowRootAccess(KotlinTestUtils.getHomeDirectory()) + super.setUp() + } + fun testSimple() { val code = module("code")