[Native][tests] Write the proper target name to KLIB manifest
We need to write the proper target name to the manifest of
produced KLIBs: i.e. the one that can be acquired by
`NativeEnvironmentConfigurator.getNativeTarget()` instead of
just a host target.
^KT-71333
diff --git a/native/native.tests/tests/org/jetbrains/kotlin/konan/test/NativeKlibSerializerFacade.kt b/native/native.tests/tests/org/jetbrains/kotlin/konan/test/NativeKlibSerializerFacade.kt
index e6d9b60..caa8a9b 100644
--- a/native/native.tests/tests/org/jetbrains/kotlin/konan/test/NativeKlibSerializerFacade.kt
+++ b/native/native.tests/tests/org/jetbrains/kotlin/konan/test/NativeKlibSerializerFacade.kt
@@ -37,6 +37,7 @@
import org.jetbrains.kotlin.test.model.*
import org.jetbrains.kotlin.test.services.*
import org.jetbrains.kotlin.test.services.configuration.NativeEnvironmentConfigurator.Companion.getKlibArtifactFile
+import org.jetbrains.kotlin.test.services.configuration.nativeEnvironmentConfigurator
import org.jetbrains.kotlin.utils.metadataVersion
abstract class AbstractNativeKlibSerializerFacade(
@@ -68,7 +69,7 @@
compilerVersion = KotlinCompilerVersion.getVersion(),
metadataVersion = configuration.metadataVersion().toString(),
),
- target = HostManager.host,
+ target = testServices.nativeEnvironmentConfigurator.getNativeTarget(module),
output = outputArtifact.outputFile.path,
moduleName = configuration.getNotNull(CommonConfigurationKeys.MODULE_NAME),
nopack = true,