Use linux endings in generated tests

This commit is contained in:
Vyacheslav Gerasimov
2020-03-31 23:42:28 +03:00
parent 59dd57dcf7
commit ca0f59dbc4
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -58,6 +58,7 @@ fun Project.generator(fqName: String, sourceSet: SourceSet? = null) = smartJavaE
classpath = (sourceSet ?: testSourceSet).runtimeClasspath
main = fqName
workingDir = rootDir
systemProperty("line.separator", "\n")
}
fun Project.getBooleanProperty(name: String): Boolean? = this.findProperty(name)?.let {
@@ -18,7 +18,6 @@ package org.jetbrains.kotlin.generators.tests;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.util.LineSeparator;
import java.io.File;
import java.io.FileNotFoundException;
@@ -148,7 +147,7 @@ public class GenerateRangesCodegenTestData {
.replace("$LIST", "list" + number)
.replace("$RANGE", "range" + number)
.replace("$TYPE", elementType)
.replace("\n", LineSeparator.getSystemLineSeparator().getSeparatorString());
.replace("\n", System.lineSeparator());
}
private static void writeIgnoreBackendDirective(PrintWriter out, String backendName) {