Test infra: refactor IGNORE_BACKEND directive

treat it as a general one, introduce *_K1 and *_K2 variants for
more specific ignoring
This commit is contained in:
Ilya Chernikov
2022-07-21 16:39:12 +02:00
parent 8f18ab19f7
commit 5b3816cce5
234 changed files with 432 additions and 426 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_K1: JVM_IR
interface Base
@CompileTimeCalculation
+1 -1
View File
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_K1: JVM_IR
package test
import kotlin.reflect.KFunction
+1 -1
View File
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND_K1: JVM_IR
package test
import kotlin.reflect.KFunction
@@ -1,6 +1,6 @@
// SKIP_KLIB_TEST
// See KT-44312
// IGNORE_BACKEND_FIR: ANY
// IGNORE_BACKEND_K2: ANY
// ^ TODO decide if we want to fix KT-42020 for FIR as well
open class Base<T> {
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// !LANGUAGE: +MultiPlatformProjects
expect abstract class A protected constructor() {
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// !LANGUAGE: +MultiPlatformProjects
expect sealed class Ops()
+1 -1
View File
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// !IGNORE_ERRORS
val test1 = unresolved
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// !IGNORE_ERRORS
fun test1() {
@@ -1,5 +1,5 @@
// LANGUAGE: +BreakContinueInInlineLambdas
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// !IGNORE_ERRORS
// WITH_STDLIB
+1 -1
View File
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
inline fun foo() = false
fun run(x: Boolean, y: Boolean): String {
+1 -1
View File
@@ -1,5 +1,5 @@
// !LANGUAGE: -ApproximateIntegerLiteralTypesInReceiverPosition
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// SKIP_KT_DUMP
// This test exists only to check that we don't accidentally break the buggy behavior of the old JVM backend in JVM IR (KT-42321).
// Feel free to remove it as soon as there's no language version where such code is allowed (KT-38895).
@@ -1,5 +1,5 @@
// LANGUAGE: -ApproximateIntegerLiteralTypesInReceiverPosition
// IGNORE_BACKEND_FIR: ANY
// IGNORE_BACKEND_K2: ANY
// For reasons this test is ignored, go to KT-46419
val test1: Long = 42
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// TARGET_BACKEND: JVM
// !LANGUAGE: -ProhibitVarargAsArrayAfterSamArgument
// WITH_JDK
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// WITH_STDLIB
// FILE: signedToUnsignedConversions_annotation.kt
@@ -1,4 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// !LANGUAGE: +VariableDeclarationInWhenSubject
fun foo(): Any = 1