[FIR] KT-57655: Add the missing condition

^KT-57655 Fixed
This commit is contained in:
Nikolay Lunyak
2023-04-20 10:23:55 +03:00
committed by Space Team
parent c4d5332251
commit 931894ab3c
21 changed files with 237 additions and 122 deletions
@@ -42,7 +42,8 @@ abstract class AbstractLightAnalysisModeTest : CodegenTestCase() {
override fun doMultiFileTest(wholeFile: File, files: List<TestFile>) {
var isIgnored = false
for (file in files) {
if (file.content.contains(failDirective)) throw RuntimeException("Forced ignore for this test")
if (file.content.contains(failDirective))
throw RuntimeException("Forced ignore for this test")
if (!isIgnored && ignoreDirectives.any { file.content.contains(it) }) isIgnored = true
}
if (isIgnored) return