[Test] Migrate AbstractAsmLikeInstructionListingTest to new test infrastructure

This commit is contained in:
Dmitriy Novozhilov
2021-10-05 16:40:15 +03:00
committed by TeamCityServer
parent bc7cc6b5a9
commit aab8870903
93 changed files with 1512 additions and 228 deletions
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.codegen
import org.jetbrains.kotlin.ObsoleteTestInfrastructure
import org.jetbrains.kotlin.test.KotlinTestUtils
import org.jetbrains.org.objectweb.asm.ClassReader
import org.jetbrains.org.objectweb.asm.Label
@@ -20,6 +21,7 @@ import java.io.File
private val LINE_SEPARATOR = System.getProperty("line.separator")
@ObsoleteTestInfrastructure
abstract class AbstractAsmLikeInstructionListingTest : CodegenTestCase() {
private companion object {
const val CURIOUS_ABOUT_DIRECTIVE = "// CURIOUS_ABOUT "
@@ -352,4 +354,4 @@ private fun MethodNode.isJvmOverloadsGenerated(): Boolean {
return (visibleAnnotations?.any { it.isJvmOverloadsGenerated() } ?: false)
|| (invisibleAnnotations?.any { it.isJvmOverloadsGenerated() } ?: false)
}
}
@@ -1,13 +0,0 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.codegen.ir
import org.jetbrains.kotlin.codegen.AbstractAsmLikeInstructionListingTest
import org.jetbrains.kotlin.test.TargetBackend
abstract class AbstractIrAsmLikeInstructionListingTest : AbstractAsmLikeInstructionListingTest() {
override val backend = TargetBackend.JVM_IR
}