[Native][tests] Make InfrastructureDumpedTestListingTest to be line ending tolerant

This commit is contained in:
Dmitriy Dolovov
2022-08-09 13:37:07 +02:00
committed by Space
parent b8e1c14b8e
commit b507975812
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.konan.blackboxtest
import com.intellij.openapi.util.text.StringUtil.convertLineSeparators
import com.intellij.testFramework.TestDataFile
import com.intellij.testFramework.TestDataPath
import org.jetbrains.kotlin.konan.blackboxtest.InfrastructureDumpedTestListingTest.Companion.TEST_SUITE_PATH
@@ -152,8 +153,8 @@ class InfrastructureDumpedTestListingTest : AbstractNativeSimpleTest() {
private fun KLIB.asIncludedLibraryDependency() = ExistingDependency(this, IncludedLibrary)
private fun assertDumpFilesEqual(expected: File, actual: File) {
val expectedDumpFileContents = expected.readText().trimEnd()
val actualDumpFileContents = actual.readText().trimEnd()
val expectedDumpFileContents = convertLineSeparators(expected.readText().trimEnd())
val actualDumpFileContents = convertLineSeparators(actual.readText().trimEnd())
assertEquals(expectedDumpFileContents, actualDumpFileContents) {
"""