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