From 76334ec6e8d66b377fc9c37187725f8d267d5ba2 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Thu, 30 Jun 2022 16:02:27 +0200 Subject: Do not generate source links for synthetic elements (#2547) Fixes #2544 --- core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/test-api/src/main/kotlin') 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, 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, 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() ) -- cgit