[K2] Ignore failing tests for isUsedAsExpression
Those tests do not pass at the moment because of KTIJ-23143
This commit is contained in:
+1
@@ -10,4 +10,5 @@ import org.jetbrains.kotlin.test.directives.model.SimpleDirectivesContainer
|
||||
object AnalysisApiTestDirectives : SimpleDirectivesContainer() {
|
||||
val DISABLE_DEPENDED_MODE by directive("Analysis in dependent mode should not be run in this test")
|
||||
val IGNORE_FE10 by directive("FE10 Analysis API implementation test should mot be run")
|
||||
val IGNORE_FIR by directive("FIR Analysis API implementation test should mot be run")
|
||||
}
|
||||
+6
-1
@@ -135,7 +135,9 @@ abstract class AbstractAnalysisApiBasedTest : TestWithDisposable() {
|
||||
return
|
||||
}
|
||||
|
||||
if (configurator.frontendKind == FrontendKind.Fe10 && isFe10DisabledForTheTest()) {
|
||||
if (configurator.frontendKind == FrontendKind.Fe10 && isFe10DisabledForTheTest() ||
|
||||
configurator.frontendKind == FrontendKind.Fir && isFirDisabledForTheTest()
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -171,6 +173,9 @@ abstract class AbstractAnalysisApiBasedTest : TestWithDisposable() {
|
||||
private fun isFe10DisabledForTheTest(): Boolean =
|
||||
AnalysisApiTestDirectives.IGNORE_FE10 in testServices.moduleStructure.allDirectives
|
||||
|
||||
private fun isFirDisabledForTheTest(): Boolean =
|
||||
AnalysisApiTestDirectives.IGNORE_FIR in testServices.moduleStructure.allDirectives
|
||||
|
||||
protected fun <R> analyseForTest(contextElement: KtElement, action: KtAnalysisSession.() -> R): R {
|
||||
return if (configurator.analyseInDependentSession) {
|
||||
val originalContainingFile = contextElement.containingKtFile
|
||||
|
||||
Reference in New Issue
Block a user