aboutsummaryrefslogtreecommitdiff
path: root/core/test-api/src/main/kotlin
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2022-06-30 16:02:27 +0200
committerGitHub <noreply@github.com>2022-06-30 16:02:27 +0200
commit76334ec6e8d66b377fc9c37187725f8d267d5ba2 (patch)
treed3423cd6b47dc1e50edf378c8d33b131c606e19b /core/test-api/src/main/kotlin
parent623b0e729c805e2ec019b1f56f67c5a2cf7eb327 (diff)
downloaddokka-76334ec6e8d66b377fc9c37187725f8d267d5ba2.tar.gz
dokka-76334ec6e8d66b377fc9c37187725f8d267d5ba2.tar.bz2
dokka-76334ec6e8d66b377fc9c37187725f8d267d5ba2.zip
Do not generate source links for synthetic elements (#2547)
Fixes #2544
Diffstat (limited to 'core/test-api/src/main/kotlin')
-rw-r--r--core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt b/core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt
index 44353535..3a3eae40 100644
--- a/core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt
+++ b/core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt
@@ -68,7 +68,7 @@ abstract class AbstractTest<M : TestMethods, T : TestBuilder<M>, D : DokkaTestGe
block: T.() -> Unit
) {
val testMethods = testBuilder().apply(block).build()
- val testDirPath = getTempDir(cleanupOutput).root.toPath()
+ val testDirPath = getTempDir(cleanupOutput).root.toPath().toAbsolutePath()
val fileMap = query.toFileMap()
fileMap.materializeFiles(testDirPath.toAbsolutePath())
if (!cleanupOutput)
@@ -85,7 +85,7 @@ abstract class AbstractTest<M : TestMethods, T : TestBuilder<M>, D : DokkaTestGe
}.toSet(),
sourceLinks = sourceSet.sourceLinks.map { link ->
link.copy(
- localDirectory = testDirPath.toFile().resolve(link.localDirectory).canonicalPath
+ localDirectory = testDirPath.toFile().resolve(link.localDirectory).absolutePath
)
}.toSet()
)