[Test] Use DUMP_EXTERNAL_CLASS instead of invalid DUMP_DEPENDENCIES directive in ir text tests

This commit is contained in:
Dmitriy Novozhilov
2022-12-05 12:09:58 +02:00
committed by Space Team
parent 9946bfcdfd
commit e7f6482857
24 changed files with 236 additions and 17 deletions
@@ -99,7 +99,7 @@ class IrTextDumpHandler(testServices: TestServices) : AbstractIrHandler(testServ
val baseFile = testServices.moduleStructure.originalTestDataFiles.first()
for (externalClassFqn in externalClassFqns) {
val classDump = stubGenerator.generateExternalClass(irModule.descriptor, externalClassFqn).dump()
val expectedFile = baseFile.withSuffixAndExtension("__$externalClassFqn", module.dumpExtension)
val expectedFile = baseFile.withSuffixAndExtension(".__$externalClassFqn", module.dumpExtension)
assertions.assertEqualsToFile(expectedFile, classDump)
}
}