Minor, don't use token COROUTINES_PACKAGE in bytecode listing tests

Most of the tests that are run both for 1.2 and 1.3 coroutines have
different expectation .txt files anyway.
This commit is contained in:
Alexander Udalov
2020-09-01 22:19:09 +02:00
parent 24aee1cce3
commit d4ecde5cb0
5 changed files with 29 additions and 18 deletions
@@ -29,9 +29,7 @@ abstract class AbstractBytecodeListingTest : CodegenTestCase() {
prefixes.firstNotNullResult { File(wholeFile.parentFile, wholeFile.nameWithoutExtension + "$it.txt").takeIf(File::exists) }
.sure { "No testData file exists: ${wholeFile.nameWithoutExtension}.txt" }
KotlinTestUtils.assertEqualsToFile(txtFile, actualTxt) {
it.replace("COROUTINES_PACKAGE", coroutinesPackage)
}
KotlinTestUtils.assertEqualsToFile(txtFile, actualTxt)
}
private fun isWithSignatures(wholeFile: File): Boolean =