[K/N][tests] Fix path-separator handling ^KT-65977
This commit is contained in:
committed by
Space Team
parent
c491858a49
commit
0882d1752d
+3
-3
@@ -105,7 +105,7 @@ internal object NativeTestSupport {
|
|||||||
fun computeNativeClassLoader(parent: ClassLoader? = null): KotlinNativeClassLoader = KotlinNativeClassLoader(
|
fun computeNativeClassLoader(parent: ClassLoader? = null): KotlinNativeClassLoader = KotlinNativeClassLoader(
|
||||||
lazy {
|
lazy {
|
||||||
val nativeClassPath = ProcessLevelProperty.COMPILER_CLASSPATH.readValue()
|
val nativeClassPath = ProcessLevelProperty.COMPILER_CLASSPATH.readValue()
|
||||||
.split(':', ';')
|
.split(File.pathSeparatorChar)
|
||||||
.map { File(it).toURI().toURL() }
|
.map { File(it).toURI().toURL() }
|
||||||
.toTypedArray()
|
.toTypedArray()
|
||||||
|
|
||||||
@@ -299,7 +299,7 @@ internal object NativeTestSupport {
|
|||||||
CompilerPlugins(
|
CompilerPlugins(
|
||||||
ClassLevelProperty.COMPILER_PLUGINS.readValue(
|
ClassLevelProperty.COMPILER_PLUGINS.readValue(
|
||||||
enforcedProperties,
|
enforcedProperties,
|
||||||
{ it.split(':', ';').mapToSet(::File) },
|
{ it.split(File.pathSeparatorChar).mapToSet(::File) },
|
||||||
default = emptySet()
|
default = emptySet()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -308,7 +308,7 @@ internal object NativeTestSupport {
|
|||||||
CustomKlibs(
|
CustomKlibs(
|
||||||
ClassLevelProperty.CUSTOM_KLIBS.readValue(
|
ClassLevelProperty.CUSTOM_KLIBS.readValue(
|
||||||
enforcedProperties,
|
enforcedProperties,
|
||||||
{ it.split(':', ';').mapToSet(::File) },
|
{ it.split(File.pathSeparatorChar).mapToSet(::File) },
|
||||||
default = emptySet()
|
default = emptySet()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user