[K/N][tests] Fix path-separator handling ^KT-65977

This commit is contained in:
Alexander Shabalin
2024-02-26 20:29:33 +01:00
committed by Space Team
parent c491858a49
commit 0882d1752d
@@ -105,7 +105,7 @@ internal object NativeTestSupport {
fun computeNativeClassLoader(parent: ClassLoader? = null): KotlinNativeClassLoader = KotlinNativeClassLoader(
lazy {
val nativeClassPath = ProcessLevelProperty.COMPILER_CLASSPATH.readValue()
.split(':', ';')
.split(File.pathSeparatorChar)
.map { File(it).toURI().toURL() }
.toTypedArray()
@@ -299,7 +299,7 @@ internal object NativeTestSupport {
CompilerPlugins(
ClassLevelProperty.COMPILER_PLUGINS.readValue(
enforcedProperties,
{ it.split(':', ';').mapToSet(::File) },
{ it.split(File.pathSeparatorChar).mapToSet(::File) },
default = emptySet()
)
)
@@ -308,7 +308,7 @@ internal object NativeTestSupport {
CustomKlibs(
ClassLevelProperty.CUSTOM_KLIBS.readValue(
enforcedProperties,
{ it.split(':', ';').mapToSet(::File) },
{ it.split(File.pathSeparatorChar).mapToSet(::File) },
default = emptySet()
)
)