FIR reference resolve test: observe mute tests which are actually passing

This commit is contained in:
Mikhail Glukhikh
2019-12-03 12:56:54 +03:00
parent f8c86d2f9f
commit 1d6d88b50c
@@ -19,7 +19,12 @@ abstract class AbstractFirReferenceResolveTest : AbstractReferenceResolveTest()
assert(path.endsWith(".kt")) { path }
myFixture.configureWithExtraFile(path, ".Data")
if (InTextDirectivesUtils.isDirectiveDefined(myFixture.file.text, "IGNORE_FIR")) {
return
try {
performChecks()
} catch (t: Throwable) {
return
}
throw AssertionError("Looks like test is passing, please remove IGNORE_FIR")
}
performChecks()
}