[K/N][Tests] Migrate first Apple-specific test

^KT-61259
This commit is contained in:
Vladimir Sukharev
2024-01-16 23:54:43 +01:00
parent e91e5db0ce
commit 6e2df0e086
11 changed files with 100 additions and 57 deletions
@@ -1231,9 +1231,6 @@ if (PlatformInfo.isAppleTarget(project)) {
it.defFile 'interop/objc/objCAction/objclib.def'
it.headers "$projectDir/interop/objc/objCAction/objclib.h"
}
createInterop("kt59167") {
it.defFile 'interop/kt59167/kt59167.def'
}
createInterop("overridabilityCondition") {
it.defFile 'interop/objc/overridabilityCondition/lib.def'
it.headers "$projectDir/interop/objc/overridabilityCondition/lib.h"
@@ -1850,13 +1847,6 @@ if (PlatformInfo.isAppleTarget(project)) {
UtilsKt.dependsOnPlatformLibs(it)
}
interopTest("interop_kt59167") {
// There is no GameController on watchOS.
enabled = target.family != Family.WATCHOS
source = 'interop/kt59167/main.kt'
interop = 'kt59167'
}
interopTest("interop_objc_kt63423_dispose_on_main_stress") {
// Test depends on macOS-specific AppKit
enabled = (project.testTarget == 'macos_x64' || project.testTarget == 'macos_arm64' || project.testTarget == null)
@@ -1,9 +0,0 @@
language=Objective-C
---
#import <GameController/GCDevice.h>
// We only need to touch the problematic header to trigger the problem,
// so actual code does not matter.
id<GCDevice> dummy() {
return nil;
}
@@ -1,11 +0,0 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
import kotlin.test.*
import kt59167.*
fun main() {
assertNull(dummy())
}