aboutsummaryrefslogtreecommitdiff
path: root/core/test-api/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'core/test-api/src/main/kotlin')
-rw-r--r--core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt11
1 files changed, 5 insertions, 6 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 0958ea14..1f7ee060 100644
--- a/core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt
+++ b/core/test-api/src/main/kotlin/testApi/testRunner/TestRunner.kt
@@ -191,12 +191,11 @@ public abstract class AbstractTest<M : TestMethods, T : TestBuilder<M>, D : Dokk
?.replaceAfter(".jar", "")
}
- protected val commonStdlibPath: String? by lazy {
- // TODO: feels hacky, find a better way to do it
- ClassLoader.getSystemResource("kotlin/UInt.kotlin_metadata")
- ?.file
- ?.replace("file:", "")
- ?.replaceAfter(".jar", "")
+ protected val commonStdlibPath: String? by lazy {
+ // `kotlin-stdlib-common` is legacy
+ // we can use any platform dependency
+ // since common code should be resolved with all platform
+ jvmStdlibPath
}
protected val stdlibExternalDocumentationLink: ExternalDocumentationLinkImpl = ExternalDocumentationLinkImpl(