[K/N] Unmute passing tests.

This commit is contained in:
Mads Ager
2022-07-07 15:03:47 +02:00
committed by Space
parent c2d62b37e6
commit 59c2bde10a
89 changed files with 21 additions and 102 deletions
@@ -1,5 +1,4 @@
// !LANGUAGE: +NestedClassesInAnnotations
// IGNORE_BACKEND: NATIVE
annotation class Foo(val kind: Kind) {
enum class Kind { FAIL, OK }
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS, JS_IR, WASM, NATIVE
// IGNORE_BACKEND: JS, JS_IR, WASM
var result = ""
fun sideEffecting(): Int {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
class A(var v: Int) {
fun f(x: Int) = x * v
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
var result = "Fail"
fun foo(
@@ -1,6 +1,5 @@
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND_FIR: JVM_IR
// FIR_STATUS: LambdaConversionException: Type mismatch for lambda argument 1: class java.lang.Object is not convertible to interface I1
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
fun <T> id(x: T): T = x
fun <T> intersect(x: T, y: T): T = x
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
inline fun <T> useRef(value: T, f: (T) -> Boolean) = f(value)
@@ -1,5 +1,4 @@
// !LANGUAGE: -ForbidUsingExtensionPropertyTypeParameterInDelegate
// IGNORE_BACKEND: NATIVE
//For KT-6020
import kotlin.reflect.KProperty1
import kotlin.reflect.KMutableProperty1
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// IGNORE_BACKEND: JS
fun fn0() {}
fun fn1(x: Any) {}
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// IGNORE_BACKEND: JS
fun fn0() {}
fun fn1(x: Any) {}
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// IGNORE_BACKEND: JS
// WITH_STDLIB
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
open class MyLogic {
protected open val postfix = "ZZZ"
open fun String.foo(prefix: String = "XXX"): String = transform(prefix + this + postfix)
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
// MODULE: lib
// FILE: A.kt
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
// MODULE: lib
// FILE: A.kt
@@ -1,3 +1,5 @@
// Fails on native when run with `-Pkotlin.internal.native.test.cacheMode=STATIC_EVERYWHERE`.
// Looks like the call to `k` fails as `k` is not exported from the lib module.
// IGNORE_BACKEND: NATIVE
// MODULE: lib
// FILE: Z.kt
-1
View File
@@ -1,6 +1,5 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: MINOR: CONST_EQUIVALENCE
// IGNORE_BACKEND: NATIVE
object A {
const val a: String = "$"
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
import kotlin.contracts.*
@@ -1,5 +1,5 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE, JS
// IGNORE_BACKEND: JS
// WITH_STDLIB
import kotlin.contracts.*
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
import kotlin.contracts.*
-1
View File
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.contracts.*
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.contracts.*
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.contracts.*
-1
View File
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.contracts.*
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
import kotlin.contracts.*
-1
View File
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
import kotlin.contracts.*
inline fun foo(x: () -> String, y: () -> String): String {
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.contracts.*
-1
View File
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.contracts.*
-1
View File
@@ -1,5 +1,4 @@
// !OPT_IN: kotlin.contracts.ExperimentalContracts
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.contracts.*
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_REFLECT
// WITH_COROUTINES
@@ -1,6 +1,5 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: SUSPEND_FUNCTION_CAST
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JS
// WITH_STDLIB
// WITH_COROUTINES
-1
View File
@@ -1,6 +1,5 @@
// WITH_STDLIB
// WITH_COROUTINES
// IGNORE_BACKEND: NATIVE
import helpers.*
import kotlin.coroutines.*
-1
View File
@@ -1,6 +1,5 @@
// WITH_STDLIB
// WITH_COROUTINES
// IGNORE_BACKEND: NATIVE
import helpers.*
import kotlin.coroutines.*
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
// WITH_COROUTINES
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_COROUTINES
// WITH_STDLIB
// MODULE: lib(support)
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JS_IR
// WITH_COROUTINES
// WITH_STDLIB
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
// WITH_COROUTINES
// MODULE: lib
@@ -1,5 +1,4 @@
// !LANGUAGE: +ReleaseCoroutines
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,7 +1,7 @@
// !LANGUAGE: +SuspendConversion
// WITH_STDLIB
// WITH_COROUTINES
// IGNORE_BACKEND: JVM, NATIVE, JS, JS_IR
// IGNORE_BACKEND: JVM, JS, JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: WASM
@@ -1,7 +1,7 @@
// !LANGUAGE: +SuspendConversion
// WITH_STDLIB
// WITH_COROUTINES
// IGNORE_BACKEND: JVM, NATIVE
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
import helpers.*
@@ -1,7 +1,7 @@
// !LANGUAGE: +SuspendConversion
// WITH_STDLIB
// WITH_COROUTINES
// IGNORE_BACKEND: JVM, NATIVE
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
// `lambda` should not be wrapped in yet another object (so no OnInlineArgumentKt$box$1$1).
@@ -1,7 +1,7 @@
// !LANGUAGE: +SuspendConversion
// WITH_STDLIB
// WITH_COROUTINES
// IGNORE_BACKEND: JVM, NATIVE, JS, JS_IR
// IGNORE_BACKEND: JVM, JS, JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: WASM
-1
View File
@@ -1,5 +1,4 @@
// !LANGUAGE: -NestedClassesInEnumEntryShouldBeInner
// IGNORE_BACKEND: NATIVE
enum class E {
ENTRY,
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
fun box(): String {
if (0.toByte().compareTo(-0.0) != 1) return "fail 1.1"
if (0.toByte().compareTo(-0.0F) != 1) return "fail 1.2"
@@ -1,6 +1,5 @@
// WITH_STDLIB
// IGNORE_BACKEND: ANDROID
// IGNORE_BACKEND: NATIVE
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
@@ -1,5 +1,4 @@
// WITH_STDLIB
// IGNORE_BACKEND: NATIVE
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
@@ -1,5 +1,4 @@
// WITH_STDLIB
// IGNORE_BACKEND: NATIVE
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
@@ -1,7 +1,6 @@
// !LANGUAGE: -ForbidUsingExtensionPropertyTypeParameterInDelegate
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_NATIVE
// IGNORE_BACKEND: NATIVE
// SKIP_MANGLE_VERIFICATION
//For KT-6020
@@ -1,5 +1,4 @@
// !LANGUAGE: -ForbidUsingExtensionPropertyTypeParameterInDelegate
// IGNORE_BACKEND: NATIVE
//For KT-6020
// MODULE: lib
@@ -1,7 +1,6 @@
// !LANGUAGE: +MultiPlatformProjects
// IGNORE_BACKEND_FIR: JVM_IR
// FIR status: default argument mapping in MPP isn't designed yet
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
// WITH_COROUTINES
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
fun test(s: String) {
if (!s.equals(s)) throw Error("fail 1 for $s")
if (s.equals(1)) throw Error("fail 2 for $s")
@@ -1,5 +1,7 @@
// IGNORE_BACKEND: JS
// Fails on native with legacy memory manager. To reproduce, run with
// -Pkotlin.internal.native.test.memoryModel=LEGACY -Pkotlin.internal.native.test.cacheMode=NO
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JS
// PROPERTY_LAZY_INITIALIZATION
// FILE: A.kt
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.test.assertTrue
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE, WASM
// IGNORE_BACKEND: JS, WASM
// WITH_REFLECT
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_REFLECT
import kotlin.test.assertEquals
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS, NATIVE
// IGNORE_BACKEND: JS
// WITH_REFLECT
@@ -1,7 +1,6 @@
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: WASM
// WITH_REFLECT
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
@@ -1,7 +1,6 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.reflect.KProperty
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.test.assertNotNull
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE, WASM
// IGNORE_BACKEND: JS, WASM
// WITH_REFLECT
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE, WASM
// IGNORE_BACKEND: JS, WASM
// WITH_REFLECT
@@ -1,7 +1,7 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE, WASM
// IGNORE_BACKEND: JS, WASM
// WITH_REFLECT
+1 -2
View File
@@ -1,8 +1,7 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// IGNORE_BACKEND: JS
// WITH_STDLIB
enum class E {
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
interface Container {
fun removeAt(x: Int): String
}
-2
View File
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
class A : Map<String, String> {
override val size: Int get() = 56
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
var result = ""
public abstract class AbstractFoo<K, V> : Map<K, V> {
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
open class A0<E> : MutableList<E> {
override fun add(element: E): Boolean {
throw UnsupportedOperationException()
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
import kotlin.test.assertEquals