[K/N] Unmute tests already working on native
Also, add issue references for some tests
This commit is contained in:
committed by
Space Team
parent
46d113605b
commit
733ca5a358
+1
-1
@@ -1,5 +1,5 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// KT-55457
|
||||
// KT-58549
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
//test [], get and iterator calls
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// KT-55457
|
||||
// KT-58549
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
fun test(b: Boolean): String {
|
||||
|
||||
+1
-8
@@ -1,11 +1,4 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
|
||||
fun foo(x : Any): String {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: STDLIB_ASSERT
|
||||
// KT-59059
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// KT-59058
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
var global = "A"
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// WITH_STDLIB
|
||||
// WITH_COROUTINES
|
||||
import kotlin.contracts.*
|
||||
|
||||
Vendored
+1
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: NESTED_OBJECT_INIT
|
||||
// KT-59058
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// WITH_STDLIB
|
||||
// WITH_COROUTINES
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR_ES6
|
||||
// DONT_TARGET_EXACT_BACKEND: WASM
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
var result = ""
|
||||
|
||||
enum class E(a: String) {
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
fun StringBuilder.takeFirst(): Char {
|
||||
if (this.length == 0) return 0.toChar()
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: -ProperIeee754Comparisons
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR_ES6
|
||||
|
||||
fun box(): String {
|
||||
val zero: Any = 0.0
|
||||
val floatZero: Any = -0.0F
|
||||
|
||||
+2
-5
@@ -1,9 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: -ProperIeee754Comparisons
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR
|
||||
// DONT_TARGET_EXACT_BACKEND: JS_IR_ES6
|
||||
|
||||
fun eqDI(x: Any?, y: Any?) = x is Double? && y is Int? && x == y
|
||||
fun eqDL(x: Any?, y: Any?) = x is Double? && y is Long? && x == y
|
||||
fun eqID(x: Any?, y: Any?) = x is Int? && y is Double? && x == y
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS_IR, JS_IR_ES6
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// FILE: DiagnosticFactory0.java
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS_IR, JS_IR_ES6
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// FILE: Processor.java
|
||||
|
||||
public interface Processor<T> {
|
||||
|
||||
-1
@@ -2,7 +2,6 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// MODULE: lib-common
|
||||
// FILE: common.kt
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// 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
|
||||
|
||||
|
||||
Vendored
+1
-6
@@ -1,9 +1,4 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: WASM
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.reflect.KCallable
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
|
||||
inline fun <reified T> foo(x: Any?) = Pair(x is T, x is T?)
|
||||
|
||||
+1
-8
@@ -1,11 +1,4 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
|
||||
inline fun <reified T> foo(x: Any?) = Pair(x is T, x is T?)
|
||||
|
||||
Vendored
-35
@@ -1,35 +0,0 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// FIR status: not supported in JVM
|
||||
|
||||
open class Base {
|
||||
open fun setup() {}
|
||||
init { setup() }
|
||||
}
|
||||
|
||||
inline class Z(val y: Int)
|
||||
|
||||
class Derived : Base {
|
||||
constructor() : super()
|
||||
override fun setup() {
|
||||
x = Z(1)
|
||||
}
|
||||
|
||||
// Technically, this field initializer comes after the superclass
|
||||
// constructor is called. However, we optimize away field initializers
|
||||
// which set fields to their default value, which is why x ends up with
|
||||
// value 1 after the constructor call.
|
||||
var x = Z(0)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val d = Derived()
|
||||
if (d.x.y != 1) return "fail"
|
||||
return "OK"
|
||||
}
|
||||
+1
-8
@@ -1,11 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: WASM
|
||||
// missing isArrayOf on JS
|
||||
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+1
-4
@@ -1,7 +1,4 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_REFLECT
|
||||
// FILE: 1.kt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user