diff --git a/kotlin-native/backend.native/tests/build.gradle b/kotlin-native/backend.native/tests/build.gradle index 6d1ab64a0e5..be9b7711f34 100644 --- a/kotlin-native/backend.native/tests/build.gradle +++ b/kotlin-native/backend.native/tests/build.gradle @@ -358,7 +358,8 @@ task run_external () { if (!file.isDirectory() || !file.file.list().any{ it.endsWith(".kt")}) return def taskPath = rootProject.relativePath(file.file) - def taskName = taskPath.split(System.properties["file.separator"]).join('_') + def fileSeparator = System.properties["file.separator"] + def taskName = taskPath.split("\\$fileSeparator").join('_') project.tasks.register(taskName, RunExternalTestGroup) { it.groupDirectory = taskPath it.finalizedBy resultsTask