[Commonizer] Fix ImportAndCheckNavigation IT
This commit is contained in:
@@ -21,7 +21,7 @@ import org.junit.Test
|
||||
class ImportAndCheckNavigation : MasterPluginVersionGradleImportingTestCase() {
|
||||
|
||||
@Test
|
||||
@PluginTargetVersions(gradleVersion = "5.0+", pluginVersion = "1.3.50+", gradleVersionForLatestPlugin = mppImportTestMinVersionForMaster)
|
||||
@PluginTargetVersions(gradleVersion = "6.0+", pluginVersion = "1.4+", gradleVersionForLatestPlugin = mppImportTestMinVersionForMaster)
|
||||
fun testNavigationToCommonizedLibrary() {
|
||||
val files = configureAndImportProject()
|
||||
|
||||
|
||||
+5
-6
@@ -1,13 +1,12 @@
|
||||
package arm64
|
||||
|
||||
import kotlinx.cinterop.CPointer
|
||||
import platform.posix.FILE
|
||||
import platform.posix.fopen
|
||||
import platform.posix.fprintf
|
||||
import platform.zlib.uInt
|
||||
import kotlinx.cinterop.*
|
||||
import platform.posix.*
|
||||
|
||||
fun test() {
|
||||
val file: CPointer< /* NAVIGATION-TARGET:typealias FILE = */ FILE> = /* NAVIGATION-TARGET:external fun fopen */ fopen("file.txt", "r") ?: return
|
||||
fun f1(): /* NAVIGATION-TARGET:typealias uInt = */ uInt = TODO()
|
||||
/* NAVIGATION-TARGET:external fun fprintf */ fprintf(null, "")
|
||||
memScoped {
|
||||
val addr: CPointerVarOf<CPointer< /* NAVIGATION-TARGET:final class sockaddr_in */ sockaddr_in>> = allocPointerTo()
|
||||
}
|
||||
}
|
||||
|
||||
+6
-7
@@ -1,13 +1,12 @@
|
||||
package common
|
||||
|
||||
import kotlinx.cinterop.CPointer
|
||||
import platform.posix.FILE
|
||||
import platform.posix.fopen
|
||||
import platform.posix.fprintf
|
||||
import platform.zlib.uInt
|
||||
import kotlinx.cinterop.*
|
||||
import platform.posix.*
|
||||
|
||||
fun test() {
|
||||
val file: CPointer< /* NAVIGATION-TARGET:expect class FILE */ FILE> = /* NAVIGATION-TARGET:external expect fun fopen */ fopen("file.txt", "r") ?: return
|
||||
fun f1(): /* NAVIGATION-TARGET:expect class uInt */ uInt = TODO()
|
||||
val file: CPointer< /* NAVIGATION-TARGET:typealias FILE = */ FILE> = /* NAVIGATION-TARGET:external expect fun fopen */ fopen("file.txt", "r") ?: return
|
||||
/* NAVIGATION-TARGET:external expect fun fprintf */ fprintf(null, "")
|
||||
memScoped {
|
||||
val addr: CPointerVarOf<CPointer< /* NAVIGATION-TARGET:final expect class sockaddr_in */ sockaddr_in>> = allocPointerTo()
|
||||
}
|
||||
}
|
||||
|
||||
+5
-6
@@ -1,13 +1,12 @@
|
||||
package x64
|
||||
|
||||
import kotlinx.cinterop.CPointer
|
||||
import platform.posix.FILE
|
||||
import platform.posix.fopen
|
||||
import platform.posix.fprintf
|
||||
import platform.zlib.uInt
|
||||
import kotlinx.cinterop.*
|
||||
import platform.posix.*
|
||||
|
||||
fun test() {
|
||||
val file: CPointer< /* NAVIGATION-TARGET:typealias FILE = */ FILE> = /* NAVIGATION-TARGET:external fun fopen */ fopen("file.txt", "r") ?: return
|
||||
fun f1(): /* NAVIGATION-TARGET:typealias uInt = */ uInt = TODO()
|
||||
/* NAVIGATION-TARGET:external fun fprintf */ fprintf(null, "")
|
||||
memScoped {
|
||||
val addr: CPointerVarOf<CPointer< /* NAVIGATION-TARGET:final class sockaddr_in */ sockaddr_in>> = allocPointerTo()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user