[Test] Fix bug with FirCfgDumpHandler which didn't start at all
Flag `alreadyDumped` is needed due to the fact that CFG dumper is not prepared to multimodule tests yet, so in such test this handler dumps only first module to .dot file. I forgot to switch it to `true` when it was introduced, so this checker actually, didn't handle anything at all
This commit is contained in:
committed by
TeamCityServer
parent
13f6b37ae7
commit
84eb74e194
+1
@@ -25,6 +25,7 @@ class FirCfgDumpHandler(testServices: TestServices) : FirAnalysisHandler(testSer
|
|||||||
if (alreadyDumped || FirDiagnosticsDirectives.DUMP_CFG !in module.directives) return
|
if (alreadyDumped || FirDiagnosticsDirectives.DUMP_CFG !in module.directives) return
|
||||||
val file = info.firFiles.values.first()
|
val file = info.firFiles.values.first()
|
||||||
file.accept(FirControlFlowGraphRenderVisitor(builder))
|
file.accept(FirControlFlowGraphRenderVisitor(builder))
|
||||||
|
alreadyDumped = true
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun processAfterAllModules(someAssertionWasFailed: Boolean) {
|
override fun processAfterAllModules(someAssertionWasFailed: Boolean) {
|
||||||
|
|||||||
Reference in New Issue
Block a user