Temporary don't fail fir tests if a test passes but *.fir.fail exists (needs for DiagnosisCompilerTestFE10TestdataTestGenerated)

This commit is contained in:
Victor Petukhov
2021-05-29 11:28:43 +03:00
parent 3e892d3184
commit 15b6a3c88c
@@ -19,7 +19,9 @@ class FirFailingTestSuppressor(testServices: TestServices) : AfterAnalysisChecke
return when {
failFile.exists() && exceptionFromFir != null -> emptyList()
failFile.exists() && exceptionFromFir == null -> {
failedAssertions + AssertionError("Fail file exists but no exception was throw. Please remove ${failFile.name}").wrap()
emptyList()
// TODO: revert it when `DiagnosisCompilerTestFE10TestdataTestGenerated` supports `*.fir.fail` files
// failedAssertions + AssertionError("Fail file exists but no exception was throw. Please remove ${failFile.name}").wrap()
}
else -> failedAssertions
}