[K/N][New MM] Disable tests for ObjC interop

This commit is contained in:
Ilya Matveev
2021-02-18 17:26:57 +07:00
committed by Space
parent 4d346d3735
commit e2e173b92c
@@ -3935,7 +3935,7 @@ Task interopTestMultifile(String name, Closure<KonanInteropTest> configureClosur
}
standaloneTest("interop_objc_allocException") {
disabled = !isAppleTarget(project)
disabled = !isAppleTarget(project) || isExperimentalMM // Experimental MM doesn't support thread state switching for ObjC interop yet.
expectedExitStatus = 0
source = "interop/objc/allocException.kt"
UtilsKt.dependsOnPlatformLibs(it)
@@ -4249,6 +4249,7 @@ standaloneTest("interop_opengl_teapot") {
if (PlatformInfo.isAppleTarget(project)) {
interopTest("interop_objc_smoke") {
enabled = !isExperimentalMM // Experimental MM doesn't support thread state switching for ObjC interop yet.
goldValue = "84\nFoo\nDeallocated\n" +
"Hello, World!\nKotlin says: Hello, everybody!\nHello from Kotlin\n2, 1\n" +
"true\ntrue\n" +
@@ -4283,7 +4284,7 @@ if (PlatformInfo.isAppleTarget(project)) {
}
interopTestMultifile("interop_objc_tests") {
enabled = !isExperimentalMM // Experimental MM does not support Obj-C weaks yet.
enabled = !isExperimentalMM // Experimental MM does not support Obj-C weaks and thread state switching for ObjC interop yet.
source = "interop/objc/tests/"
interop = 'objcTests'
flags = ['-tr', '-e', 'main']
@@ -4304,6 +4305,7 @@ if (PlatformInfo.isAppleTarget(project)) {
}
interopTest("interop_objc_global_initializer") {
enabled = !isExperimentalMM // Experimental MM doesn't support thread state switching for ObjC interop yet.
goldValue = "OK\n"
source = "interop/objc_with_initializer/objc_test.kt"
interop = 'objcMisc'
@@ -4322,6 +4324,7 @@ if (PlatformInfo.isAppleTarget(project)) {
}
interopTest("interop_objc_msg_send") {
enabled = !isExperimentalMM // Experimental MM doesn't support thread state switching for ObjC interop yet.
source = "interop/objc/msg_send/main.kt"
interop = 'objcMessaging'
@@ -4339,6 +4342,7 @@ if (PlatformInfo.isAppleTarget(project)) {
}
interopTest("interop_objc_foreignException") {
enabled = !isExperimentalMM // Experimental MM doesn't support thread state switching for ObjC interop yet.
source = "interop/objc/foreignException/objc_wrap.kt"
interop = 'foreignException'
UtilsKt.dependsOnPlatformLibs(it)
@@ -4357,6 +4361,7 @@ if (PlatformInfo.isAppleTarget(project)) {
}
interopTest("interop_objc_foreignExceptionMode_wrap") {
enabled = !isExperimentalMM // Experimental MM doesn't support thread state switching for ObjC interop yet.
source = "interop/objc/foreignException/objcExceptionMode.kt"
interop = 'foreignExceptionMode_wrap'
goldValue = "OK: ForeignException\n"
@@ -4376,6 +4381,7 @@ if (PlatformInfo.isAppleTarget(project)) {
}
interopTest("interop_objc_foreignExceptionMode_default") {
enabled = !isExperimentalMM // Experimental MM doesn't support thread state switching for ObjC interop yet.
source = "interop/objc/foreignException/objcExceptionMode.kt"
interop = 'foreignExceptionMode_default'
goldValue = "OK: Ends with uncaught exception handler\n"
@@ -4401,7 +4407,7 @@ if (PlatformInfo.isAppleTarget(project)) {
}
interopTest("interop_objc_illegal_sharing_with_weak") {
enabled = !isExperimentalMM // Experimental MM doesn't support multiple mutators yet.
enabled = !isExperimentalMM // Experimental MM doesn't support multiple mutators and thread state switching for ObjC interop yet.
source = "interop/objc/illegal_sharing_with_weak/main.kt"
interop = 'objc_illegal_sharing_with_weak'
@@ -4414,7 +4420,7 @@ if (PlatformInfo.isAppleTarget(project)) {
}
interopTest("interop_objc_kt42172") {
enabled = !isExperimentalMM // Experimental MM doesn't support multiple mutators yet.
enabled = !isExperimentalMM // Experimental MM doesn't support multiple mutators and thread state switching for ObjC interop yet.
source = "interop/objc/kt42172/main.kt"
interop = "objc_kt42172"
flags = ['-Xopt-in=kotlin.native.internal.InternalForKotlinNative']
@@ -4465,7 +4471,7 @@ standaloneTest("interop_zlib") {
standaloneTest("interop_objc_illegal_sharing") {
disabled = !isAppleTarget(project) ||
isExperimentalMM // Experimental MM doesn't support multiple mutators yet.
isExperimentalMM // Experimental MM doesn't support multiple mutators and thread state switching for ObjC interop yet.
source = "interop/objc/illegal_sharing.kt"
UtilsKt.dependsOnPlatformLibs(it)
expectedExitStatusChecker = { it != 0 }
@@ -4739,7 +4745,7 @@ Task frameworkTest(String name, Closure<FrameworkTest> configurator) {
if (isAppleTarget(project)) {
frameworkTest('testObjCExport') {
enabled = !isExperimentalMM // Experimental MM doesn't support ObjC blocks yet.
enabled = !isExperimentalMM // Experimental MM doesn't support ObjC blocks and thread state switching for ObjC interop yet.
final String frameworkName = 'Kt'
final String dir = "$testOutputFramework/testObjCExport"
final File lazyHeader = file("$dir/$target-lazy.h")
@@ -4788,7 +4794,7 @@ if (isAppleTarget(project)) {
}
frameworkTest('testObjCExportNoGenerics') {
enabled = !isExperimentalMM // Experimental MM doesn't support ObjC blocks yet.
enabled = !isExperimentalMM // Experimental MM doesn't support ObjC blocks and thread state switching for ObjC interop yet.
final String frameworkName = 'KtNoGenerics'
final String frameworkArtifactName = 'Kt'
final String dir = "$testOutputFramework/testObjCExportNoGenerics"
@@ -4841,7 +4847,7 @@ if (isAppleTarget(project)) {
}
frameworkTest('testObjCExportStatic') {
enabled = !isExperimentalMM // Experimental MM doesn't support ObjC blocks yet.
enabled = !isExperimentalMM // Experimental MM doesn't support ObjC blocks and thread state switching for ObjC interop yet.
final String frameworkName = 'KtStatic'
final String frameworkArtifactName = 'Kt'
final String libraryName = frameworkName + "Library"
@@ -4926,6 +4932,7 @@ if (isAppleTarget(project)) {
}
frameworkTest("testGh3343Framework") {
enabled = !isExperimentalMM // Experimental MM doesn't support thread state switching for ObjC interop yet.
framework('Gh3343') {
sources = ['framework/gh3343']
library = 'objcGh3343'