Add explicit WITH_RUNTIME to boxAgainstJava tests which need stdlib

This commit is contained in:
Alexander Udalov
2019-03-27 15:09:30 +01:00
parent 15928c5b46
commit cb7727d51a
23 changed files with 21 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
// WITH_RUNTIME
// FILE: JavaAnn.java
import java.lang.annotation.Retention;

View File

@@ -1,3 +1,4 @@
// WITH_RUNTIME
// FILE: JavaAnn.java
import java.lang.annotation.Retention;

View File

@@ -1,3 +1,4 @@
// WITH_RUNTIME
// FILE: JavaAnn.java
import java.lang.annotation.Retention;

View File

@@ -1,3 +1,4 @@
// WITH_RUNTIME
// FILE: JavaAnn.java
import java.lang.annotation.Retention;

View File

@@ -1,3 +1,4 @@
// WITH_RUNTIME
// FILE: Foo.java
class Foo {

View File

@@ -1,3 +1,4 @@
// WITH_RUNTIME
// FILE: Foo.java
class Foo {

View File

@@ -1,3 +1,4 @@
// WITH_RUNTIME
// FILE: Foo.java
class Foo {

View File

@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: JavaAnn.java
import java.lang.annotation.Retention;

View File

@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: JavaAnn.java
import java.lang.annotation.Retention;

View File

@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: JavaAnn.java
import java.lang.annotation.Retention;

View File

@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: JavaAnn.java
import java.lang.annotation.Retention;

View File

@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: JavaAnn.java
import java.lang.annotation.Retention;

View File

@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: JavaAnn.java
import java.lang.annotation.Retention;

View File

@@ -28,7 +28,6 @@ fun box(): String {
return "Fail: should have been an exception"
}
catch(e: IllegalStateException) {
println(e.message)
return "OK"
}
}

View File

@@ -1,10 +1,10 @@
// WITH_RUNTIME
// FILE: J.java
public class J {}
// FILE: 1.kt
import kotlin.reflect.jvm.*
import kotlin.test.assertEquals
fun box(): String {

View File

@@ -1,3 +1,4 @@
// WITH_RUNTIME
// FILE: JavaInterface.java
interface JavaInterface {

View File

@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: Super.java
class Super {

View File

@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: Custom.java
class Custom {

View File

@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: Promise.java
import org.jetbrains.annotations.NotNull;

View File

@@ -1,5 +1,6 @@
// SKIP_JDK6
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: JavaClass.java
class JavaClass {

View File

@@ -17,7 +17,7 @@ class JavaClass {
fun box(): String {
val javaClass = JavaClass()
if (javaClass.x.isEmpty()) {
if (javaClass.x == "") {
javaClass.x = "OK"
}
return javaClass.x

View File

@@ -17,7 +17,7 @@ class JavaClass {
fun box(): String {
val javaClass = JavaClass()
if (javaClass.x.isEmpty()) {
if (javaClass.x == "") {
javaClass.x = "OK"
}
return javaClass.x