[K/N][kotlin.test] Make GeneratedSuites public

Issue #KT-47915 fixed
This commit is contained in:
Ilya Matveev
2021-07-27 14:12:44 +07:00
committed by Space
parent d4e1cded59
commit 3e823d62a9
@@ -3,13 +3,21 @@
* that can be found in the LICENSE file.
*/
@file:OptIn(ExperimentalStdlibApi::class)
package kotlin.native.internal.test
import kotlin.system.exitProcess
import kotlin.native.concurrent.*
// Advanced users may need an access to test suites generated by the compiler to integrate
// our test machinery with third party test runners (e.g. with xctestrun).
// So we keep this object public but protect it with @ExperimentalStdlibApi
// to stress that it is not a part of the stable API.
// Related YT issue: KT-47915.
@ExperimentalStdlibApi
@ThreadLocal
private object GeneratedSuites {
public object GeneratedSuites {
val suites = mutableListOf<TestSuite>()
fun add(suite: TestSuite) = suites.add(suite)
}