[Tests] Convert line endings of test files to LF
This fixes a problem on Windows where CRs would end up in the code leading to parsing problems.
This commit is contained in:
committed by
Space Team
parent
503cd6196c
commit
919d6401f7
+1
-1
@@ -26,7 +26,7 @@ abstract class AdditionalSourceProvider(val testServices: TestServices) : Servic
|
||||
protected fun File.toTestFile(relativePath: String? = null): TestFile {
|
||||
return TestFile(
|
||||
relativePath?.let(Paths::get)?.resolve(name)?.toString() ?: name,
|
||||
this.readText(),
|
||||
this.useLines { it.joinToString("\n") },
|
||||
originalFile = this,
|
||||
startLineNumberInOriginalFile = 0,
|
||||
isAdditional = true,
|
||||
|
||||
Reference in New Issue
Block a user