[K/N][Tests] Adjust moved tests interfaceCallsNCasts..vector to new infra
^KT-61259
This commit is contained in:
committed by
Space Team
parent
93642020ff
commit
bb8a7b6795
@@ -3,8 +3,8 @@
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
@file:OptIn(FreezingIsDeprecated::class, kotlin.experimental.ExperimentalNativeApi::class)
|
||||
package codegen.objectDeclaration.isFrozen
|
||||
//@file:OptIn(FreezingIsDeprecated::class, kotlin.experimental.ExperimentalNativeApi::class)
|
||||
@file:OptIn(kotlin.experimental.ExperimentalNativeApi::class)
|
||||
|
||||
import kotlin.test.*
|
||||
import kotlin.native.concurrent.*
|
||||
@@ -13,7 +13,7 @@ object X {
|
||||
var value: Int = 0
|
||||
}
|
||||
|
||||
@Test fun runTest() {
|
||||
fun box(): String {
|
||||
if (Platform.memoryModel == MemoryModel.STRICT) {
|
||||
assertTrue(X.isFrozen)
|
||||
assertFailsWith<InvalidMutabilityException> {
|
||||
@@ -25,4 +25,5 @@ object X {
|
||||
X.value = 42
|
||||
assertEquals(42, X.value)
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user