[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:
Dmitriy Novozhilov
2021-01-11 13:28:46 +03:00
committed by TeamCityServer
parent 13f6b37ae7
commit 84eb74e194
@@ -25,6 +25,7 @@ class FirCfgDumpHandler(testServices: TestServices) : FirAnalysisHandler(testSer
if (alreadyDumped || FirDiagnosticsDirectives.DUMP_CFG !in module.directives) return
val file = info.firFiles.values.first()
file.accept(FirControlFlowGraphRenderVisitor(builder))
alreadyDumped = true
}
override fun processAfterAllModules(someAssertionWasFailed: Boolean) {