From 4610d9f1714c617cf1753a671c485d6e7ccf33dd Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Wed, 2 Dec 2020 18:53:49 +0300 Subject: [PATCH] Fix file separator in tests for Windows --- kotlin-native/backend.native/tests/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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