Get rid of jvm specific code in some tests

This commit is contained in:
Mikhael Bogdanov
2018-12-21 16:59:13 +01:00
parent 7d51be17c8
commit ac5f5bd453
5 changed files with 43 additions and 7 deletions
@@ -1,4 +1,6 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
fun fn0() {}
fun fn1(x: Any) {}
@@ -7,7 +9,7 @@ inline fun asFailsWithCCE(operation: String, block: () -> Unit) {
try {
block()
}
catch (e: java.lang.ClassCastException) {
catch (e: ClassCastException) {
return
}
catch (e: Throwable) {
@@ -1,5 +1,7 @@
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
fun fn0() {}
fun fn1(x: Any) {}
@@ -17,7 +19,7 @@ inline fun <reified T> reifiedAsFailsWithCCE(x: Any, operation: String) {
try {
x as T
}
catch (e: java.lang.ClassCastException) {
catch (e: ClassCastException) {
return
}
catch (e: Throwable) {