Specify JVM target backend for other java related tests

This commit is contained in:
Mikhael Bogdanov
2018-12-21 12:19:02 +01:00
parent d76cb32781
commit f59b6a350f
43 changed files with 44 additions and 118 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
+1 -3
View File
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyCollection<T>: Collection<T> { class MyCollection<T>: Collection<T> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyIterator<T>(val v: T): Iterator<T> { class MyIterator<T>(val v: T): Iterator<T> {
override fun next(): T = v override fun next(): T = v
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyIterator<T>(val v: T): Iterator<T> { class MyIterator<T>(val v: T): Iterator<T> {
override fun next(): T = v override fun next(): T = v
+1 -3
View File
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyList<T>: List<T> { class MyList<T>: List<T> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyListIterator<T> : ListIterator<T> { class MyListIterator<T> : ListIterator<T> {
override fun next(): T = null!! override fun next(): T = null!!
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyList<T>(val v: T): List<T> { class MyList<T>(val v: T): List<T> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
open class Super<T>(val v: T) { open class Super<T>(val v: T) {
public fun add(e: T): Boolean = true public fun add(e: T): Boolean = true
+1 -3
View File
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyMap<K, V>: Map<K, V> { class MyMap<K, V>: Map<K, V> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyMapEntry<K, V>: Map.Entry<K, V> { class MyMapEntry<K, V>: Map.Entry<K, V> {
override fun hashCode(): Int = 0 override fun hashCode(): Int = 0
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyMapEntry<K, V>: Map.Entry<K, V> { class MyMapEntry<K, V>: Map.Entry<K, V> {
override fun hashCode(): Int = 0 override fun hashCode(): Int = 0
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyMap<K, V>: Map<K, V> { class MyMap<K, V>: Map<K, V> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyList: List<String> { class MyList: List<String> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
abstract class A : Iterator<String> { abstract class A : Iterator<String> {
abstract fun remove(): Unit abstract fun remove(): Unit
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
interface Addable { interface Addable {
fun add(s: String): Boolean = true fun add(s: String): Boolean = true
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
open class SetStringImpl { open class SetStringImpl {
fun add(s: String): Boolean = false fun add(s: String): Boolean = false
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyCollection<T> : Collection<List<Iterator<T>>> { class MyCollection<T> : Collection<List<Iterator<T>>> {
override fun iterator() = null!! override fun iterator() = null!!
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
class MyIterator<E : Number> : Iterator<E> { class MyIterator<E : Number> : Iterator<E> {
override fun next() = null!! override fun next() = null!!
+1 -3
View File
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
fun nil() = null fun nil() = null
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
fun box(): String { fun box(): String {
var cycle = true; var cycle = true;
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
data class A(val a: IntArray, var b: Array<String>) data class A(val a: IntArray, var b: Array<String>)
@@ -1,6 +1,5 @@
// IGNORE_BACKEND: JS_IR
// TODO: Enable when JS backend gets support of Java class library // TODO: Enable when JS backend gets support of Java class library
// IGNORE_BACKEND: JS, NATIVE // TARGET_BACKEND: JVM
fun ok(b: Boolean) = if (b) "OK" else "Fail" fun ok(b: Boolean) = if (b) "OK" else "Fail"
fun box(): String { fun box(): String {
+1 -3
View File
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
interface MyIterator<T> { interface MyIterator<T> {
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
fun box(): String { fun box(): String {
val l = java.util.ArrayList<Int>() val l = java.util.ArrayList<Int>()
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// This test checks that our bytecode is consistent with javac bytecode // This test checks that our bytecode is consistent with javac bytecode
+1 -3
View File
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
fun box() : String { fun box() : String {
val t = java.lang.String.copyValueOf(java.lang.String("s").toCharArray()) val t = java.lang.String.copyValueOf(java.lang.String("s").toCharArray())
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
// FULL_JDK // FULL_JDK
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS, JS_IR, JVM_IR, NATIVE // IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_REFLECT // WITH_REFLECT
import kotlin.reflect.KClass import kotlin.reflect.KClass
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,7 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
+1 -3
View File
@@ -1,6 +1,4 @@
// IGNORE_BACKEND: JS_IR // TARGET_BACKEND: JVM
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
// FULL_JDK // FULL_JDK
@@ -1,5 +1,5 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: NATIVE // TARGET_BACKEND: JVM
// WITH_REFLECT // WITH_REFLECT
// FILE: 1.kt // FILE: 1.kt
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: NATIVE // TARGET_BACKEND: JVM
// FILE: 1.kt // FILE: 1.kt
class My(val value: Int) class My(val value: Int)
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: NATIVE // TARGET_BACKEND: JVM
// FILE: 1.kt // FILE: 1.kt
class My(val value: Int) class My(val value: Int)
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: NATIVE // TARGET_BACKEND: JVM
// FILE: 1.kt // FILE: 1.kt
// WITH_RUNTIME // WITH_RUNTIME