1 package kotlinx.coroutines 2 3 import kotlin.native.concurrent.* 4 import kotlin.native.internal.test.* 5 import kotlin.system.* 6 7 // This is a separate entry point for tests in background mainBackgroundnull8fun mainBackground(args: Array<String>) { 9 val worker = Worker.start(name = "main-background") 10 worker.execute(TransferMode.SAFE, { args }) { 11 val result = testLauncherEntryPoint(it) 12 exitProcess(result) 13 }.result // block main thread 14 } 15