[K/N][Tests] Move threadStates tests to common codegen/box folder
^KT-61259
This commit is contained in:
committed by
Space Team
parent
96d7dc4fa6
commit
80cf88c9b9
+10
@@ -6302,6 +6302,16 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+10
@@ -6302,6 +6302,16 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+10
@@ -6302,6 +6302,16 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+3
-1
@@ -3,6 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// NATIVE_STANDALONE
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// MODULE: cinterop
|
||||
// FILE: threadStates.def
|
||||
@@ -39,11 +40,12 @@ import kotlin.test.*
|
||||
import kotlinx.cinterop.*
|
||||
import threadStates.*
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
runCallback(staticCFunction { ->
|
||||
assertRunnableThreadState()
|
||||
})
|
||||
assertRunnableThreadState()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun assertRunnableThreadState() {
|
||||
+3
-1
@@ -3,6 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// NATIVE_STANDALONE
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// MODULE: cinterop
|
||||
// FILE: threadStates.def
|
||||
@@ -29,10 +30,11 @@ import kotlin.test.*
|
||||
import kotlinx.cinterop.*
|
||||
import threadStates.*
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
runInNewThread(staticCFunction { ->
|
||||
assertRunnableThreadState()
|
||||
})
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun assertRunnableThreadState() {
|
||||
+3
-2
@@ -3,6 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// NATIVE_STANDALONE
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// MODULE: cinterop
|
||||
// FILE: threadStates.def
|
||||
@@ -39,12 +40,12 @@ import kotlin.test.*
|
||||
import kotlinx.cinterop.staticCFunction
|
||||
import threadStates.*
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
try {
|
||||
runCallback(staticCFunction(::throwException))
|
||||
} catch (e: CustomException) {
|
||||
assertRunnableThreadState()
|
||||
return
|
||||
return "OK"
|
||||
} catch (e: Throwable) {
|
||||
assertRunnableThreadState()
|
||||
fail("Wrong exception type: ${e.message}")
|
||||
+3
-2
@@ -3,6 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// NATIVE_STANDALONE
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// MODULE: cinterop
|
||||
// FILE: threadStates.def
|
||||
@@ -39,12 +40,12 @@ import kotlin.test.*
|
||||
import kotlinx.cinterop.staticCFunction
|
||||
import threadStates.*
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
try {
|
||||
runCallback(staticCFunction(::throwException))
|
||||
} catch (e: CustomException) {
|
||||
assertRunnableThreadState()
|
||||
return
|
||||
return "OK"
|
||||
} finally {
|
||||
assertRunnableThreadState()
|
||||
}
|
||||
+3
-1
@@ -3,6 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// NATIVE_STANDALONE
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// MODULE: cinterop
|
||||
// FILE: threadStates.def
|
||||
@@ -39,7 +40,7 @@ import kotlin.test.*
|
||||
import kotlinx.cinterop.staticCFunction
|
||||
import threadStates.*
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
try {
|
||||
try {
|
||||
runCallback(staticCFunction(::throwException))
|
||||
@@ -48,6 +49,7 @@ fun main() {
|
||||
}
|
||||
assertRunnableThreadState()
|
||||
} catch (_: CustomException) {}
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun assertRunnableThreadState() {
|
||||
+3
-1
@@ -3,6 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// NATIVE_STANDALONE
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class, kotlinx.cinterop.ExperimentalForeignApi::class)
|
||||
|
||||
@@ -10,13 +11,14 @@ import kotlin.native.runtime.Debugging
|
||||
import kotlin.test.*
|
||||
import kotlinx.cinterop.*
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
val funPtr = staticCFunction { ->
|
||||
assertRunnableThreadState()
|
||||
}
|
||||
assertRunnableThreadState()
|
||||
funPtr()
|
||||
assertRunnableThreadState()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun assertRunnableThreadState() {
|
||||
+3
-1
@@ -3,6 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// NATIVE_STANDALONE
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// MODULE: cinterop
|
||||
// FILE: threadStates.def
|
||||
@@ -40,9 +41,10 @@ import kotlin.test.*
|
||||
import kotlinx.cinterop.*
|
||||
import threadStates.*
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
answer()
|
||||
assertRunnableThreadState()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun assertRunnableThreadState() {
|
||||
+3
-2
@@ -3,6 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// NATIVE_STANDALONE
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// MODULE: cinterop
|
||||
// FILE: threadStates.def
|
||||
@@ -39,7 +40,7 @@ import kotlin.test.*
|
||||
import kotlinx.cinterop.staticCFunction
|
||||
import threadStates.*
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
try {
|
||||
runCallback(staticCFunction { ->
|
||||
assertRunnableThreadState()
|
||||
@@ -47,7 +48,7 @@ fun main() {
|
||||
})
|
||||
} catch (e: CustomException) {
|
||||
assertRunnableThreadState()
|
||||
return
|
||||
return "OK"
|
||||
} catch (e: Throwable) {
|
||||
assertRunnableThreadState()
|
||||
fail("Wrong exception type: ${e.message}")
|
||||
+3
-2
@@ -3,6 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// NATIVE_STANDALONE
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// MODULE: cinterop
|
||||
// FILE: threadStates.def
|
||||
@@ -39,7 +40,7 @@ import kotlin.test.*
|
||||
import kotlinx.cinterop.staticCFunction
|
||||
import threadStates.*
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
try {
|
||||
runCallback(staticCFunction { ->
|
||||
assertRunnableThreadState()
|
||||
@@ -47,7 +48,7 @@ fun main() {
|
||||
})
|
||||
} catch (e: CustomException) {
|
||||
assertRunnableThreadState()
|
||||
return
|
||||
return "OK"
|
||||
} finally {
|
||||
assertRunnableThreadState()
|
||||
}
|
||||
+3
-1
@@ -3,6 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
// TARGET_BACKEND: NATIVE
|
||||
// NATIVE_STANDALONE
|
||||
// FREE_COMPILER_ARGS: -opt-in=kotlin.native.internal.InternalForKotlinNative
|
||||
// MODULE: cinterop
|
||||
// FILE: threadStates.def
|
||||
@@ -46,13 +47,14 @@ import kotlin.test.*
|
||||
import kotlinx.cinterop.*
|
||||
import threadStates.*
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
runCallback(staticCFunction { ->
|
||||
assertRunnableThreadState()
|
||||
answer()
|
||||
Unit
|
||||
})
|
||||
assertRunnableThreadState()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun assertRunnableThreadState() {
|
||||
+10
@@ -6302,6 +6302,16 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+10
@@ -6068,6 +6068,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+10
@@ -6302,6 +6302,16 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+10
@@ -6302,6 +6302,16 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+13
@@ -5522,6 +5522,19 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ThreadStates extends AbstractLightAnalysisModeTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/classLiteral")
|
||||
|
||||
+10
@@ -4640,6 +4640,16 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Generated
+10
@@ -4640,6 +4640,16 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+10
@@ -4640,6 +4640,16 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+10
@@ -4640,6 +4640,16 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+73
@@ -5092,6 +5092,79 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/cinterop/packages/root.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("frontend-fir")
|
||||
@FirPipeline()
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callback.kt")
|
||||
public void testCallback() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callback.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackOnSeparateThread.kt")
|
||||
public void testCallbackOnSeparateThread() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackOnSeparateThread.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithException.kt")
|
||||
public void testCallbackWithException() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinally.kt")
|
||||
public void testCallbackWithFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinallyNoCatch.kt")
|
||||
public void testCallbackWithFinallyNoCatch() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinallyNoCatch.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("directStaticCFunctionCall.kt")
|
||||
public void testDirectStaticCFunctionCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/directStaticCFunctionCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nativeCall.kt")
|
||||
public void testNativeCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nativeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithException.kt")
|
||||
public void testNestedCallbackWithException() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithFinally.kt")
|
||||
public void testNestedCallbackWithFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCalls.kt")
|
||||
public void testNestedCalls() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCalls.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+75
@@ -5208,6 +5208,81 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/cinterop/packages/root.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("frontend-fir")
|
||||
@FirPipeline()
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callback.kt")
|
||||
public void testCallback() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callback.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackOnSeparateThread.kt")
|
||||
public void testCallbackOnSeparateThread() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackOnSeparateThread.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithException.kt")
|
||||
public void testCallbackWithException() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinally.kt")
|
||||
public void testCallbackWithFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinallyNoCatch.kt")
|
||||
public void testCallbackWithFinallyNoCatch() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinallyNoCatch.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("directStaticCFunctionCall.kt")
|
||||
public void testDirectStaticCFunctionCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/directStaticCFunctionCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nativeCall.kt")
|
||||
public void testNativeCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nativeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithException.kt")
|
||||
public void testNestedCallbackWithException() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithFinally.kt")
|
||||
public void testNestedCallbackWithFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCalls.kt")
|
||||
public void testNestedCalls() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCalls.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
-75
@@ -258,79 +258,4 @@ public class FirNativeStandaloneTestGenerated extends AbstractNativeBlackBoxTest
|
||||
runTest("native/native.tests/testData/standalone/termination/unhandledExceptionInForeignThread.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/native.tests/testData/standalone/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("standalone")
|
||||
@EnforcedProperty(property = ClassLevelProperty.TEST_KIND, propertyValue = "STANDALONE_NO_TR")
|
||||
@UseStandardTestCaseGroupProvider()
|
||||
@Tag("frontend-fir")
|
||||
@FirPipeline()
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/standalone/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callback.kt")
|
||||
public void testCallback() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/callback.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackOnSeparateThread.kt")
|
||||
public void testCallbackOnSeparateThread() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/callbackOnSeparateThread.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithException.kt")
|
||||
public void testCallbackWithException() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/callbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinally.kt")
|
||||
public void testCallbackWithFinally() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/callbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinallyNoCatch.kt")
|
||||
public void testCallbackWithFinallyNoCatch() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/callbackWithFinallyNoCatch.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("directStaticCFunctionCall.kt")
|
||||
public void testDirectStaticCFunctionCall() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/directStaticCFunctionCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nativeCall.kt")
|
||||
public void testNativeCall() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/nativeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithException.kt")
|
||||
public void testNestedCallbackWithException() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/nestedCallbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithFinally.kt")
|
||||
public void testNestedCallbackWithFinally() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/nestedCallbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCalls.kt")
|
||||
public void testNestedCalls() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/nestedCalls.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+71
@@ -4976,6 +4976,77 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/cinterop/packages/root.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callback.kt")
|
||||
public void testCallback() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callback.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackOnSeparateThread.kt")
|
||||
public void testCallbackOnSeparateThread() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackOnSeparateThread.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithException.kt")
|
||||
public void testCallbackWithException() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinally.kt")
|
||||
public void testCallbackWithFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinallyNoCatch.kt")
|
||||
public void testCallbackWithFinallyNoCatch() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinallyNoCatch.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("directStaticCFunctionCall.kt")
|
||||
public void testDirectStaticCFunctionCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/directStaticCFunctionCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nativeCall.kt")
|
||||
public void testNativeCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nativeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithException.kt")
|
||||
public void testNestedCallbackWithException() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithFinally.kt")
|
||||
public void testNestedCallbackWithFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCalls.kt")
|
||||
public void testNestedCalls() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCalls.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+73
@@ -5093,6 +5093,79 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/cinterop/packages/root.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@UseExtTestCaseGroupProvider()
|
||||
@UsePartialLinkage(mode = Mode.DISABLED)
|
||||
@Tag("no-partial-linkage-may-be-skipped")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callback.kt")
|
||||
public void testCallback() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callback.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackOnSeparateThread.kt")
|
||||
public void testCallbackOnSeparateThread() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackOnSeparateThread.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithException.kt")
|
||||
public void testCallbackWithException() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinally.kt")
|
||||
public void testCallbackWithFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinallyNoCatch.kt")
|
||||
public void testCallbackWithFinallyNoCatch() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/callbackWithFinallyNoCatch.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("directStaticCFunctionCall.kt")
|
||||
public void testDirectStaticCFunctionCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/directStaticCFunctionCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nativeCall.kt")
|
||||
public void testNativeCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nativeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithException.kt")
|
||||
public void testNestedCallbackWithException() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithFinally.kt")
|
||||
public void testNestedCallbackWithFinally() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCallbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCalls.kt")
|
||||
public void testNestedCalls() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/cinterop/threadStates/nestedCalls.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
-73
@@ -249,77 +249,4 @@ public class NativeStandaloneTestGenerated extends AbstractNativeBlackBoxTest {
|
||||
runTest("native/native.tests/testData/standalone/termination/unhandledExceptionInForeignThread.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("native/native.tests/testData/standalone/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@Tag("standalone")
|
||||
@EnforcedProperty(property = ClassLevelProperty.TEST_KIND, propertyValue = "STANDALONE_NO_TR")
|
||||
@UseStandardTestCaseGroupProvider()
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("native/native.tests/testData/standalone/threadStates"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callback.kt")
|
||||
public void testCallback() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/callback.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackOnSeparateThread.kt")
|
||||
public void testCallbackOnSeparateThread() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/callbackOnSeparateThread.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithException.kt")
|
||||
public void testCallbackWithException() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/callbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinally.kt")
|
||||
public void testCallbackWithFinally() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/callbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callbackWithFinallyNoCatch.kt")
|
||||
public void testCallbackWithFinallyNoCatch() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/callbackWithFinallyNoCatch.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("directStaticCFunctionCall.kt")
|
||||
public void testDirectStaticCFunctionCall() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/directStaticCFunctionCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nativeCall.kt")
|
||||
public void testNativeCall() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/nativeCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithException.kt")
|
||||
public void testNestedCallbackWithException() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/nestedCallbackWithException.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCallbackWithFinally.kt")
|
||||
public void testNestedCallbackWithFinally() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/nestedCallbackWithFinally.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedCalls.kt")
|
||||
public void testNestedCalls() throws Exception {
|
||||
runTest("native/native.tests/testData/standalone/threadStates/nestedCalls.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+10
@@ -4622,6 +4622,16 @@ public class FirWasmCodegenBoxTestGenerated extends AbstractFirWasmCodegenBoxTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Generated
+10
@@ -4622,6 +4622,16 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/packages"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/cinterop/threadStates")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ThreadStates {
|
||||
@Test
|
||||
public void testAllFilesPresentInThreadStates() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/cinterop/threadStates"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user