[Tests] Adjust FirIdenticalCheckerHelper behavior in case .ir.txt file is absent
.ir.txt file may be absent for the following test kinds with // DUMP_IR - codegen tests with // IGNORE_BACKEND_K1: ANY - FirScriptCodegenTestGenerated, since it does not have K1 counterpart - Fir*PluginBlackBoxCodegenTestGenerated, since it does not have K1 counterpart ^KT-64256 Fixed
This commit is contained in:
committed by
Space Team
parent
ec3dd43edc
commit
82c5b745e2
+1
-1
@@ -20,7 +20,7 @@ abstract class FirIdenticalCheckerHelper(private val testServices: TestServices)
|
||||
abstract fun getFirFileToCompare(testDataFile: File): File?
|
||||
|
||||
fun firAndClassicContentsAreEquals(testDataFile: File, trimLines: Boolean = false): Boolean {
|
||||
val classicFile = getClassicFileToCompare(testDataFile) ?: return true
|
||||
val classicFile = getClassicFileToCompare(testDataFile) ?: return false
|
||||
val firFile = getFirFileToCompare(testDataFile) ?: return true
|
||||
return contentsAreEquals(classicFile, firFile, trimLines)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user