diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index dcfff06c98b..a255c48903a 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -195,11 +195,7 @@ def createTestTasks(File testRoot, Class taskType, Closure taskConfigurati task run_external () { // Create tasks for external tests. - for (testDir in ["codegen", "compileKotlinAgainstKotlin"]) { - createTestTasks(new File(externalTestsDir, testDir), RunExternalTestGroup) { - it.goldValue = "OK" - } - } + createTestTasks(externalTestsDir, RunExternalTestGroup) { } // Set up dependencies. dependsOn(clean) diff --git a/backend.native/tests/external/codegen/box/boxingOptimization/boxedRealsCmp.kt b/backend.native/tests/external/codegen/box/boxingOptimization/boxedRealsCmp.kt index 20db67feeb0..73046a97b47 100644 --- a/backend.native/tests/external/codegen/box/boxingOptimization/boxedRealsCmp.kt +++ b/backend.native/tests/external/codegen/box/boxingOptimization/boxedRealsCmp.kt @@ -1,4 +1,5 @@ -// IGNORE_BACKEND: JS, NATIVE +// +// IGNORE_BACKEND: JS inline fun ltx(a: Comparable, b: Any) = a < b inline fun lex(a: Comparable, b: Any) = a <= b diff --git a/backend.native/tests/external/codegen/box/boxingOptimization/explicitEqualsOnDouble.kt b/backend.native/tests/external/codegen/box/boxingOptimization/explicitEqualsOnDouble.kt index d515e1d9db2..ea864337add 100644 --- a/backend.native/tests/external/codegen/box/boxingOptimization/explicitEqualsOnDouble.kt +++ b/backend.native/tests/external/codegen/box/boxingOptimization/explicitEqualsOnDouble.kt @@ -1,5 +1,4 @@ // IGNORE_BACKEND: JS -// IGNORE_BACKEND: NATIVE fun equals1(a: Double, b: Double) = a.equals(b) diff --git a/backend.native/tests/external/codegen/box/bridges/strListContains.kt b/backend.native/tests/external/codegen/box/bridges/strListContains.kt index cd092b0c2a8..33062160eb9 100644 --- a/backend.native/tests/external/codegen/box/bridges/strListContains.kt +++ b/backend.native/tests/external/codegen/box/bridges/strListContains.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE class StrList : List { override val size: Int diff --git a/backend.native/tests/external/codegen/box/callableReference/bound/genericValOnLHS.kt b/backend.native/tests/external/codegen/box/callableReference/bound/genericValOnLHS.kt index e3a16aa52ae..c579cf7d957 100644 --- a/backend.native/tests/external/codegen/box/callableReference/bound/genericValOnLHS.kt +++ b/backend.native/tests/external/codegen/box/callableReference/bound/genericValOnLHS.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE class Generic

(val p: P) diff --git a/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferenceArguments.kt b/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferenceArguments.kt index e6d290e4bbc..c0f66b81d0e 100644 --- a/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferenceArguments.kt +++ b/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferenceArguments.kt @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME // WITH_REFLECT diff --git a/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferencesWithNullableTypes.kt b/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferencesWithNullableTypes.kt index f8a21cee800..5feb3593e9d 100644 --- a/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferencesWithNullableTypes.kt +++ b/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferencesWithNullableTypes.kt @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME // WITH_REFLECT diff --git a/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferencesWithOverload.kt b/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferencesWithOverload.kt index 5cfd4013edc..cb7ab6e616f 100644 --- a/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferencesWithOverload.kt +++ b/backend.native/tests/external/codegen/box/callableReference/function/genericCallableReferencesWithOverload.kt @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME // WITH_REFLECT diff --git a/backend.native/tests/external/codegen/box/callableReference/function/local/equalsHashCode.kt b/backend.native/tests/external/codegen/box/callableReference/function/local/equalsHashCode.kt index b547cb1ee3f..1e92227328f 100644 --- a/backend.native/tests/external/codegen/box/callableReference/function/local/equalsHashCode.kt +++ b/backend.native/tests/external/codegen/box/callableReference/function/local/equalsHashCode.kt @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS fun box(): String { fun bar() {} diff --git a/backend.native/tests/external/codegen/box/casts/functions/asFunKBig.kt b/backend.native/tests/external/codegen/box/casts/functions/asFunKBig.kt index e6b457326ed..43df48d37b6 100644 --- a/backend.native/tests/external/codegen/box/casts/functions/asFunKBig.kt +++ b/backend.native/tests/external/codegen/box/casts/functions/asFunKBig.kt @@ -1,5 +1,5 @@ // TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME // This is a big, ugly, semi-auto generated test. diff --git a/backend.native/tests/external/codegen/box/casts/functions/reifiedAsFunKBig.kt b/backend.native/tests/external/codegen/box/casts/functions/reifiedAsFunKBig.kt index af43807ed25..d853a01bb9d 100644 --- a/backend.native/tests/external/codegen/box/casts/functions/reifiedAsFunKBig.kt +++ b/backend.native/tests/external/codegen/box/casts/functions/reifiedAsFunKBig.kt @@ -1,5 +1,5 @@ // TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME // This is a big, ugly, semi-auto generated test. diff --git a/backend.native/tests/external/codegen/box/casts/mutableCollections/asWithMutable.kt b/backend.native/tests/external/codegen/box/casts/mutableCollections/asWithMutable.kt index ee84b9649a6..18e55258044 100644 --- a/backend.native/tests/external/codegen/box/casts/mutableCollections/asWithMutable.kt +++ b/backend.native/tests/external/codegen/box/casts/mutableCollections/asWithMutable.kt @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: NATIVE + // WITH_RUNTIME class Itr : Iterator by ArrayList().iterator() diff --git a/backend.native/tests/external/codegen/box/casts/mutableCollections/isWithMutable.kt b/backend.native/tests/external/codegen/box/casts/mutableCollections/isWithMutable.kt index fc3ebaa857d..56e8fb846c8 100644 --- a/backend.native/tests/external/codegen/box/casts/mutableCollections/isWithMutable.kt +++ b/backend.native/tests/external/codegen/box/casts/mutableCollections/isWithMutable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME class Itr : Iterator by ArrayList().iterator() diff --git a/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt b/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt index f75476e9d74..77d2d3b8683 100644 --- a/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt +++ b/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedAsWithMutable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME class Itr : Iterator by ArrayList().iterator() diff --git a/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt b/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt index ef18351b1c7..df6e233f20a 100644 --- a/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt +++ b/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedIsWithMutable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME class Itr : Iterator by ArrayList().iterator() diff --git a/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt b/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt index 023267ff0ec..a54ad8b239f 100644 --- a/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt +++ b/backend.native/tests/external/codegen/box/casts/mutableCollections/reifiedSafeAsWithMutable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME class Itr : Iterator by ArrayList().iterator() diff --git a/backend.native/tests/external/codegen/box/casts/mutableCollections/safeAsWithMutable.kt b/backend.native/tests/external/codegen/box/casts/mutableCollections/safeAsWithMutable.kt index aa96805e640..58113095c09 100644 --- a/backend.native/tests/external/codegen/box/casts/mutableCollections/safeAsWithMutable.kt +++ b/backend.native/tests/external/codegen/box/casts/mutableCollections/safeAsWithMutable.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME class Itr : Iterator by ArrayList().iterator() diff --git a/backend.native/tests/external/codegen/box/classLiteral/bound/primitives.kt b/backend.native/tests/external/codegen/box/classLiteral/bound/primitives.kt index bfa727e8e7f..c2fd3c472e9 100644 --- a/backend.native/tests/external/codegen/box/classLiteral/bound/primitives.kt +++ b/backend.native/tests/external/codegen/box/classLiteral/bound/primitives.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: NATIVE - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/backend.native/tests/external/codegen/box/classLiteral/bound/simple.kt b/backend.native/tests/external/codegen/box/classLiteral/bound/simple.kt index d2b40164da8..6c7092c7bbb 100644 --- a/backend.native/tests/external/codegen/box/classLiteral/bound/simple.kt +++ b/backend.native/tests/external/codegen/box/classLiteral/bound/simple.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE fun box(): String { val x: CharSequence = "" diff --git a/backend.native/tests/external/codegen/box/classLiteral/bound/smartCast.kt b/backend.native/tests/external/codegen/box/classLiteral/bound/smartCast.kt index f7832e00d15..7b66b1e1786 100644 --- a/backend.native/tests/external/codegen/box/classLiteral/bound/smartCast.kt +++ b/backend.native/tests/external/codegen/box/classLiteral/bound/smartCast.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // KT-16291 Smart cast doesn't work when getting class of instance class Foo(val s: String) { diff --git a/backend.native/tests/external/codegen/box/classes/kt1157.kt b/backend.native/tests/external/codegen/box/classes/kt1157.kt index decc6d7ed58..126889d5110 100644 --- a/backend.native/tests/external/codegen/box/classes/kt1157.kt +++ b/backend.native/tests/external/codegen/box/classes/kt1157.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE public object SomeClass { private val work = object : Runnable { override fun run() { diff --git a/backend.native/tests/external/codegen/box/classes/privateOuterFunctions.kt b/backend.native/tests/external/codegen/box/classes/privateOuterFunctions.kt index b7bc7e0a5ad..ceeb4ff69ce 100644 --- a/backend.native/tests/external/codegen/box/classes/privateOuterFunctions.kt +++ b/backend.native/tests/external/codegen/box/classes/privateOuterFunctions.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE class C { private fun String.ext() : String = "" private fun f() {} diff --git a/backend.native/tests/external/codegen/box/classes/privateOuterProperty.kt b/backend.native/tests/external/codegen/box/classes/privateOuterProperty.kt index f3971e4c46f..0f0bc3e452f 100644 --- a/backend.native/tests/external/codegen/box/classes/privateOuterProperty.kt +++ b/backend.native/tests/external/codegen/box/classes/privateOuterProperty.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE class C{ private var v : Int = 0 diff --git a/backend.native/tests/external/codegen/box/controlStructures/kt513.kt b/backend.native/tests/external/codegen/box/controlStructures/kt513.kt index ef01018fba2..74092c47aed 100644 --- a/backend.native/tests/external/codegen/box/controlStructures/kt513.kt +++ b/backend.native/tests/external/codegen/box/controlStructures/kt513.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: NATIVE - // WITH_RUNTIME class A() { diff --git a/backend.native/tests/external/codegen/box/controlStructures/kt772.kt b/backend.native/tests/external/codegen/box/controlStructures/kt772.kt index 61d8ff8858d..6facb9ef23d 100644 --- a/backend.native/tests/external/codegen/box/controlStructures/kt772.kt +++ b/backend.native/tests/external/codegen/box/controlStructures/kt772.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: NATIVE - package demo2 fun print(o : Any?) {} diff --git a/backend.native/tests/external/codegen/box/controlStructures/kt773.kt b/backend.native/tests/external/codegen/box/controlStructures/kt773.kt index 61d8ff8858d..6facb9ef23d 100644 --- a/backend.native/tests/external/codegen/box/controlStructures/kt773.kt +++ b/backend.native/tests/external/codegen/box/controlStructures/kt773.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: NATIVE - package demo2 fun print(o : Any?) {} diff --git a/backend.native/tests/external/codegen/box/coroutines/featureIntersection/breakWithNonEmptyStack.kt b/backend.native/tests/external/codegen/box/coroutines/featureIntersection/breakWithNonEmptyStack.kt index 52453e44edd..9fc5f638784 100644 --- a/backend.native/tests/external/codegen/box/coroutines/featureIntersection/breakWithNonEmptyStack.kt +++ b/backend.native/tests/external/codegen/box/coroutines/featureIntersection/breakWithNonEmptyStack.kt @@ -1,6 +1,5 @@ // WITH_RUNTIME // WITH_COROUTINES -// IGNORE_BACKEND: NATIVE import helpers.* import kotlin.coroutines.experimental.* import kotlin.coroutines.experimental.intrinsics.* diff --git a/backend.native/tests/external/codegen/box/coroutines/inlineSuspendFunction.kt b/backend.native/tests/external/codegen/box/coroutines/inlineSuspendFunction.kt index 9930735b6ff..0ad4d2d31ea 100644 --- a/backend.native/tests/external/codegen/box/coroutines/inlineSuspendFunction.kt +++ b/backend.native/tests/external/codegen/box/coroutines/inlineSuspendFunction.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import helpers.* diff --git a/backend.native/tests/external/codegen/box/coroutines/instanceOfContinuation.kt b/backend.native/tests/external/codegen/box/coroutines/instanceOfContinuation.kt index b39aed2861b..b90fe0385c8 100644 --- a/backend.native/tests/external/codegen/box/coroutines/instanceOfContinuation.kt +++ b/backend.native/tests/external/codegen/box/coroutines/instanceOfContinuation.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import helpers.* diff --git a/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModule.kt b/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModule.kt index ad5db0563d9..07c92a70254 100644 --- a/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModule.kt +++ b/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModule.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_COROUTINES // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModuleOverride.kt b/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModuleOverride.kt index bc9a47a50f5..a5abc7f09a3 100644 --- a/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModuleOverride.kt +++ b/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModuleOverride.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // IGNORE_BACKEND: JVM // WITH_COROUTINES // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModuleWithController.kt b/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModuleWithController.kt index 902ef8e991f..4052708cca0 100644 --- a/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModuleWithController.kt +++ b/backend.native/tests/external/codegen/box/coroutines/multiModule/inlineMultiModuleWithController.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_COROUTINES // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/box/coroutines/stackUnwinding/inlineSuspendFunction.kt b/backend.native/tests/external/codegen/box/coroutines/stackUnwinding/inlineSuspendFunction.kt index 6edf9a2358a..e1957340d17 100644 --- a/backend.native/tests/external/codegen/box/coroutines/stackUnwinding/inlineSuspendFunction.kt +++ b/backend.native/tests/external/codegen/box/coroutines/stackUnwinding/inlineSuspendFunction.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_COROUTINES import helpers.* diff --git a/backend.native/tests/external/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt b/backend.native/tests/external/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt index 026ef54eb65..106725aca4a 100644 --- a/backend.native/tests/external/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt +++ b/backend.native/tests/external/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionEvaluationOrder.kt @@ -1,6 +1,5 @@ // WITH_RUNTIME // WITH_COROUTINES -// IGNORE_BACKEND: NATIVE import helpers.* import kotlin.coroutines.experimental.* diff --git a/backend.native/tests/external/codegen/box/dataClasses/doubleParam.kt b/backend.native/tests/external/codegen/box/dataClasses/doubleParam.kt index 50a6d8e2755..7c4f6be1a75 100644 --- a/backend.native/tests/external/codegen/box/dataClasses/doubleParam.kt +++ b/backend.native/tests/external/codegen/box/dataClasses/doubleParam.kt @@ -1,5 +1,5 @@ // TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS val NAN = Double.NaN diff --git a/backend.native/tests/external/codegen/box/dataClasses/floatParam.kt b/backend.native/tests/external/codegen/box/dataClasses/floatParam.kt index f6e2224ba71..aaa8f2b5e2f 100644 --- a/backend.native/tests/external/codegen/box/dataClasses/floatParam.kt +++ b/backend.native/tests/external/codegen/box/dataClasses/floatParam.kt @@ -1,5 +1,5 @@ // TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS val NAN = Float.NaN diff --git a/backend.native/tests/external/codegen/box/ieee754/comparableTypeCast.kt b/backend.native/tests/external/codegen/box/ieee754/comparableTypeCast.kt index 4f941c7fcb6..a4298207118 100644 --- a/backend.native/tests/external/codegen/box/ieee754/comparableTypeCast.kt +++ b/backend.native/tests/external/codegen/box/ieee754/comparableTypeCast.kt @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS fun box(): String { if ((-0.0 as Comparable) >= 0.0) return "fail 0" if ((-0.0F as Comparable) >= 0.0F) return "fail 1" diff --git a/backend.native/tests/external/codegen/box/javaInterop/notNullAssertions/mapPut.kt b/backend.native/tests/external/codegen/box/javaInterop/notNullAssertions/mapPut.kt index 48ec53af5f9..c39287e7d2b 100644 --- a/backend.native/tests/external/codegen/box/javaInterop/notNullAssertions/mapPut.kt +++ b/backend.native/tests/external/codegen/box/javaInterop/notNullAssertions/mapPut.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE fun foo(k: K, v: V) { val map = HashMap() diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/emptyLhs.kt b/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/emptyLhs.kt index f4332d5634a..4e5c78fdc56 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/emptyLhs.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/emptyLhs.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME package test diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/innerSubclass.kt b/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/innerSubclass.kt index 691f6277775..ae96f730eab 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/innerSubclass.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/innerSubclass.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // LANGUAGE_VERSION: 1.2 // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/propertyImportedFromObject.kt b/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/propertyImportedFromObject.kt index 31c3c57a7ee..a61d790b09a 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/propertyImportedFromObject.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/propertyImportedFromObject.kt @@ -1,5 +1,5 @@ // WITH_RUNTIME -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS package test diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/sideEffects.kt b/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/sideEffects.kt index 54d75bcd3b3..af11f2c3bc6 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/sideEffects.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/sideEffects.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // LANGUAGE_VERSION: 1.2 // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/topLevelProperty.kt b/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/topLevelProperty.kt index fc4e774df7d..ef928e74a5b 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/topLevelProperty.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/isInitializedAndDeinitialize/topLevelProperty.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // LANGUAGE_VERSION: 1.2 // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedCapturedMemberAccess.kt b/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedCapturedMemberAccess.kt index 74fd67b08f8..2ec43b51f18 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedCapturedMemberAccess.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedCapturedMemberAccess.kt @@ -1,6 +1,5 @@ // LANGUAGE_VERSION: 1.2 // WITH_RUNTIME -// IGNORE_BACKEND: NATIVE import kotlin.UninitializedPropertyAccessException diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedCapturedRead.kt b/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedCapturedRead.kt index 450606b7f4c..1e66de74e9c 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedCapturedRead.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedCapturedRead.kt @@ -1,6 +1,5 @@ // LANGUAGE_VERSION: 1.2 // WITH_RUNTIME -// IGNORE_BACKEND: NATIVE import kotlin.UninitializedPropertyAccessException diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedMemberAccess.kt b/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedMemberAccess.kt index 6785487157e..bb44b6b553e 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedMemberAccess.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedMemberAccess.kt @@ -1,6 +1,5 @@ // LANGUAGE_VERSION: 1.2 // WITH_RUNTIME -// IGNORE_BACKEND: NATIVE import kotlin.UninitializedPropertyAccessException diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedRead.kt b/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedRead.kt index cdb17a1381d..c27563bdf75 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedRead.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/local/uninitializedRead.kt @@ -1,6 +1,5 @@ // LANGUAGE_VERSION: 1.2 // WITH_RUNTIME -// IGNORE_BACKEND: NATIVE import kotlin.UninitializedPropertyAccessException diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/accessorException.kt b/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/accessorException.kt index 8b04f78f948..a6ecf9ab272 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/accessorException.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/accessorException.kt @@ -1,6 +1,5 @@ // LANGUAGE_VERSION: 1.2 // WITH_RUNTIME -// IGNORE_BACKEND: NATIVE // FILE: lateinit.kt private lateinit var s: String diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/uninitializedMemberAccess.kt b/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/uninitializedMemberAccess.kt index ffdedd8745e..0c496b9005b 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/uninitializedMemberAccess.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/uninitializedMemberAccess.kt @@ -1,6 +1,5 @@ // LANGUAGE_VERSION: 1.2 // WITH_RUNTIME -// IGNORE_BACKEND: NATIVE import kotlin.UninitializedPropertyAccessException diff --git a/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/uninitializedRead.kt b/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/uninitializedRead.kt index c7055a8d13c..bc4af80a0c4 100644 --- a/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/uninitializedRead.kt +++ b/backend.native/tests/external/codegen/box/properties/lateinit/topLevel/uninitializedRead.kt @@ -1,6 +1,5 @@ // LANGUAGE_VERSION: 1.2 // WITH_RUNTIME -// IGNORE_BACKEND: NATIVE import kotlin.UninitializedPropertyAccessException diff --git a/backend.native/tests/external/codegen/box/ranges/contains/inComparableRange.kt b/backend.native/tests/external/codegen/box/ranges/contains/inComparableRange.kt index 9f3c461c773..71b784e107f 100644 --- a/backend.native/tests/external/codegen/box/ranges/contains/inComparableRange.kt +++ b/backend.native/tests/external/codegen/box/ranges/contains/inComparableRange.kt @@ -1,5 +1,5 @@ // TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/box/ranges/safeCallRangeTo.kt b/backend.native/tests/external/codegen/box/ranges/safeCallRangeTo.kt index e1eb200a582..0d277d3c2bb 100644 --- a/backend.native/tests/external/codegen/box/ranges/safeCallRangeTo.kt +++ b/backend.native/tests/external/codegen/box/ranges/safeCallRangeTo.kt @@ -1,5 +1,5 @@ // TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/box/traits/kt2399.kt b/backend.native/tests/external/codegen/box/traits/kt2399.kt index 54dbd833474..9b59cb8cab1 100644 --- a/backend.native/tests/external/codegen/box/traits/kt2399.kt +++ b/backend.native/tests/external/codegen/box/traits/kt2399.kt @@ -1,5 +1,5 @@ // TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // on JS Parser.parse and MultiParser.parse clash in ProjectInfoJsonParser class JsonObject { diff --git a/backend.native/tests/external/codegen/box/traits/traitImplGenericDelegation.kt b/backend.native/tests/external/codegen/box/traits/traitImplGenericDelegation.kt index a76414d686d..65253011fd9 100644 --- a/backend.native/tests/external/codegen/box/traits/traitImplGenericDelegation.kt +++ b/backend.native/tests/external/codegen/box/traits/traitImplGenericDelegation.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE interface A { fun foo(t: T, u: U): V? { return null diff --git a/backend.native/tests/external/codegen/box/when/integralWhenWithNoInlinedConstants.kt b/backend.native/tests/external/codegen/box/when/integralWhenWithNoInlinedConstants.kt index 4b58f875147..1d07419974a 100644 --- a/backend.native/tests/external/codegen/box/when/integralWhenWithNoInlinedConstants.kt +++ b/backend.native/tests/external/codegen/box/when/integralWhenWithNoInlinedConstants.kt @@ -1,5 +1,5 @@ // TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/box/when/stringOptimization/duplicatingItemsSameHashCode.kt b/backend.native/tests/external/codegen/box/when/stringOptimization/duplicatingItemsSameHashCode.kt index 53f6754fb71..00ff2e6812e 100644 --- a/backend.native/tests/external/codegen/box/when/stringOptimization/duplicatingItemsSameHashCode.kt +++ b/backend.native/tests/external/codegen/box/when/stringOptimization/duplicatingItemsSameHashCode.kt @@ -1,5 +1,5 @@ // TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/box/when/stringOptimization/sameHashCode.kt b/backend.native/tests/external/codegen/box/when/stringOptimization/sameHashCode.kt index fd4d11e6b65..2114ac50d26 100644 --- a/backend.native/tests/external/codegen/box/when/stringOptimization/sameHashCode.kt +++ b/backend.native/tests/external/codegen/box/when/stringOptimization/sameHashCode.kt @@ -1,5 +1,5 @@ // TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS // WITH_RUNTIME diff --git a/backend.native/tests/external/codegen/boxInline/property/reifiedVal.kt b/backend.native/tests/external/codegen/boxInline/property/reifiedVal.kt index 8c325b6bdf8..f88d11b18fc 100644 --- a/backend.native/tests/external/codegen/boxInline/property/reifiedVal.kt +++ b/backend.native/tests/external/codegen/boxInline/property/reifiedVal.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_REFLECT // FILE: 1.kt diff --git a/backend.native/tests/external/codegen/boxInline/property/reifiedVar.kt b/backend.native/tests/external/codegen/boxInline/property/reifiedVar.kt index ff387f94d19..ace575f220f 100644 --- a/backend.native/tests/external/codegen/boxInline/property/reifiedVar.kt +++ b/backend.native/tests/external/codegen/boxInline/property/reifiedVar.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // WITH_RUNTIME // WITH_REFLECT // FILE: 1.kt diff --git a/backend.native/tests/external/codegen/boxInline/reified/kt9637_2.kt b/backend.native/tests/external/codegen/boxInline/reified/kt9637_2.kt index bd2c993cb0c..c73c2638623 100644 --- a/backend.native/tests/external/codegen/boxInline/reified/kt9637_2.kt +++ b/backend.native/tests/external/codegen/boxInline/reified/kt9637_2.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // FILE: 1.kt package test diff --git a/backend.native/tests/external/compileKotlinAgainstKotlin/coroutinesBinary.kt b/backend.native/tests/external/compileKotlinAgainstKotlin/coroutinesBinary.kt index 1458cde1c16..a6b75c53561 100644 --- a/backend.native/tests/external/compileKotlinAgainstKotlin/coroutinesBinary.kt +++ b/backend.native/tests/external/compileKotlinAgainstKotlin/coroutinesBinary.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: NATIVE // FILE: A.kt // WITH_RUNTIME package a diff --git a/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy b/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy index 7539e45e675..f2f4f0681bf 100644 --- a/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy +++ b/buildSrc/plugins/src/main/groovy/org/jetbrains/kotlin/KonanTest.groovy @@ -752,7 +752,8 @@ import kotlin.test.Test fun runTest() { @Suppress("UNUSED_VARIABLE") val result = box() - ${ (goldValue != null) ? "print(result)" : "" } + if (result != "OK") throw AssertionError("Test failed with: " + result) + print(result) } """ ) createFile(file, text.toString())