[K2/N] Fix test on Windows: remove \r from compared strings
Address reviewer's comment Fix test on Windows: remove \r from compared strings Merge-request: KT-MR-8799 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
ee32fddbfe
commit
babd52e27a
+6
-4
@@ -15,7 +15,7 @@ import org.jetbrains.kotlin.konan.blackboxtest.support.runner.*
|
||||
import org.jetbrains.kotlin.konan.blackboxtest.support.settings.*
|
||||
import org.jetbrains.kotlin.konan.blackboxtest.support.util.*
|
||||
import org.jetbrains.kotlin.test.services.JUnit5Assertions.assertEquals
|
||||
import org.junit.jupiter.api.Assumptions
|
||||
import org.jetbrains.kotlin.test.util.convertLineSeparators
|
||||
import org.junit.jupiter.api.Tag
|
||||
import java.io.File
|
||||
|
||||
@@ -57,7 +57,9 @@ abstract class AbstractNativeKlibContentsTest : AbstractNativeSimpleTest() {
|
||||
}
|
||||
|
||||
private fun filterContentsOutput(contents: String, linestoExclude: List<String>) =
|
||||
contents.split("\n").filterNot { line ->
|
||||
linestoExclude.any { exclude -> exclude == line }
|
||||
}.joinToString(separator = "\n")
|
||||
contents.convertLineSeparators()
|
||||
.split("\n")
|
||||
.filterNot { line ->
|
||||
linestoExclude.any { exclude -> exclude == line }
|
||||
}.joinToString(separator = "\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user