diff --git a/compiler/android-tests/android-module/build.gradle b/compiler/android-tests/android-module/build.gradle index 16a2df2a240..3731ac9afdc 100644 --- a/compiler/android-tests/android-module/build.gradle +++ b/compiler/android-tests/android-module/build.gradle @@ -71,6 +71,10 @@ android { ktest1 { dimension "box" } + + ktest2 { + dimension "box" + } } } @@ -96,4 +100,5 @@ dependencies { ktest0Implementation fileTree(dir: 'libs/test', include: ['libtest0.jar']) ktest1Implementation fileTree(dir: 'libs/test', include: ['libtest1.jar']) + ktest2Implementation fileTree(dir: 'libs/test', include: ['libtest2.jar']) } diff --git a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt index f51ffe2b9b3..684223cb2bb 100644 --- a/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt +++ b/compiler/android-tests/tests/org/jetbrains/kotlin/android/tests/CodegenTestsOnAndroidGenerator.kt @@ -138,12 +138,12 @@ class CodegenTestsOnAndroidGenerator private constructor(private val pathManager private fun writeFiles(filesToCompile: List, environment: KotlinCoreEnvironment) { if (filesToCompile.isEmpty()) return - //3000 files per folder that would be used by flavor to avoid multidex usage, + //2500 files per folder that would be used by flavor to avoid multidex usage, // each folder would be jared by build.gradle script writtenFilesCount += filesToCompile.size - val index = writtenFilesCount / 3000 + val index = writtenFilesCount / 2500 val outputDir = File(pathManager.getOutputForCompiledFiles(index)) - assertTrue("Add flavors for ktest$index", index < 2) + assertTrue("Add flavors for ktest$index", index < 3) println("Generating ${filesToCompile.size} files into ${outputDir.name}, configuration: '${environment.configuration}'...") diff --git a/compiler/testData/codegen/box/coroutines/debug/elvisLineNumber.kt b/compiler/testData/codegen/box/coroutines/debug/elvisLineNumber.kt index b33427f3684..f9b160d9393 100644 --- a/compiler/testData/codegen/box/coroutines/debug/elvisLineNumber.kt +++ b/compiler/testData/codegen/box/coroutines/debug/elvisLineNumber.kt @@ -3,7 +3,7 @@ // WITH_RUNTIME // WITH_COROUTINES // FULL_JDK - +package test import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* diff --git a/compiler/testData/codegen/box/coroutines/debug/multipleSuspendCallsOnSameLine.kt b/compiler/testData/codegen/box/coroutines/debug/multipleSuspendCallsOnSameLine.kt index 6dc7235543e..ea59540545f 100644 --- a/compiler/testData/codegen/box/coroutines/debug/multipleSuspendCallsOnSameLine.kt +++ b/compiler/testData/codegen/box/coroutines/debug/multipleSuspendCallsOnSameLine.kt @@ -3,10 +3,10 @@ // WITH_RUNTIME // WITH_COROUTINES // FULL_JDK +package test import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* - fun builder(c: suspend () -> Unit) { c.startCoroutine(EmptyContinuation) } diff --git a/compiler/testData/codegen/box/coroutines/debug/throwsOnSameLine.kt b/compiler/testData/codegen/box/coroutines/debug/throwsOnSameLine.kt index 7955513e92c..4a388e8e7ce 100644 --- a/compiler/testData/codegen/box/coroutines/debug/throwsOnSameLine.kt +++ b/compiler/testData/codegen/box/coroutines/debug/throwsOnSameLine.kt @@ -3,10 +3,10 @@ // WITH_RUNTIME // WITH_COROUTINES // FULL_JDK +package test import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* - fun builder(c: suspend () -> Unit) { c.startCoroutine(EmptyContinuation) } diff --git a/compiler/testData/codegen/box/reflection/annotations/onTypes/classLiteralWithExpectedType.kt b/compiler/testData/codegen/box/reflection/annotations/onTypes/classLiteralWithExpectedType.kt index 2b654242dc3..43923fce2a6 100644 --- a/compiler/testData/codegen/box/reflection/annotations/onTypes/classLiteralWithExpectedType.kt +++ b/compiler/testData/codegen/box/reflection/annotations/onTypes/classLiteralWithExpectedType.kt @@ -1,6 +1,7 @@ // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_REFLECT +package test import kotlin.reflect.KClass import kotlin.test.assertEquals @@ -16,10 +17,10 @@ fun f(): @Anno(String::class, CharSequence::class, [Double::class, Long::class, fun box(): String { assertEquals( - "[@Anno(k1=class java.lang.String, k2=interface java.lang.CharSequence, " + + "[@test.Anno(k1=class java.lang.String, k2=interface java.lang.CharSequence, " + "ka=[class java.lang.Double, class java.lang.Long, class java.lang.Integer])]", ::f.returnType.annotations.toString() ) return "OK" -} +} \ No newline at end of file diff --git a/compiler/testData/codegen/box/reflection/annotations/onTypes/differentArgumentTypes.kt b/compiler/testData/codegen/box/reflection/annotations/onTypes/differentArgumentTypes.kt index 2deef399618..909083bc91b 100644 --- a/compiler/testData/codegen/box/reflection/annotations/onTypes/differentArgumentTypes.kt +++ b/compiler/testData/codegen/box/reflection/annotations/onTypes/differentArgumentTypes.kt @@ -1,6 +1,7 @@ // IGNORE_BACKEND_FIR: JVM_IR // TARGET_BACKEND: JVM // WITH_REFLECT +package test import kotlin.reflect.KClass import kotlin.test.assertEquals @@ -66,11 +67,11 @@ fun f(): @Anno( fun box(): String { assertEquals( - "[@Anno(b=1, c=x, d=3.14, f=-2.72, i=42424242, j=239239239239239, s=42, z=true, " + + "[@test.Anno(b=1, c=x, d=3.14, f=-2.72, i=42424242, j=239239239239239, s=42, z=true, " + "ba=[-1], ca=[y], da=[-3.14159], fa=[2.7218], ia=[424242], ja=[239239239239], sa=[-43], za=[false, true], " + - "str=lol, k=class java.lang.Number, k2=class [I, e=EXPRESSION, a=@Nested(value=1), stra=[lmao], " + + "str=lol, k=class java.lang.Number, k2=class [I, e=EXPRESSION, a=@test.Nested(value=1), stra=[lmao], " + "ka=[class java.lang.Double, class kotlin.Unit, class [J, class [Ljava.lang.String;], " + - "ea=[TYPEALIAS, FIELD], aa=[@Nested(value=2), @Nested(value=3)])]", + "ea=[TYPEALIAS, FIELD], aa=[@test.Nested(value=2), @test.Nested(value=3)])]", ::f.returnType.annotations.toString() ) diff --git a/compiler/testData/codegen/box/reflection/createAnnotation/floatingPointParameters.kt b/compiler/testData/codegen/box/reflection/createAnnotation/floatingPointParameters.kt index 7f71454f98b..e61566a7fe3 100644 --- a/compiler/testData/codegen/box/reflection/createAnnotation/floatingPointParameters.kt +++ b/compiler/testData/codegen/box/reflection/createAnnotation/floatingPointParameters.kt @@ -4,7 +4,7 @@ // IGNORE_BACKEND: JS, NATIVE // WITH_REFLECT - +package test import kotlin.test.assertEquals import kotlin.test.assertNotEquals import kotlin.test.assertTrue @@ -58,10 +58,10 @@ fun box(): String { val dpz = D::class.constructors.single().call(+0.0) val fmz = F::class.constructors.single().call(-0.0f) val fpz = F::class.constructors.single().call(+0.0f) - check(::dMinusZero.annotations.single() as D, dmz, "@D\\(d=-0.0\\)") - check(::dPlusZero.annotations.single() as D, dpz, "@D\\(d=0.0\\)") - check(::fMinusZero.annotations.single() as F, fmz, "@F\\(f=-0.0f?\\)") - check(::fPlusZero.annotations.single() as F, fpz, "@F\\(f=0.0f?\\)") + check(::dMinusZero.annotations.single() as D, dmz, "@test.D\\(d=-0.0\\)") + check(::dPlusZero.annotations.single() as D, dpz, "@test.D\\(d=0.0\\)") + check(::fMinusZero.annotations.single() as F, fmz, "@test.F\\(f=-0.0f?\\)") + check(::fPlusZero.annotations.single() as F, fpz, "@test.F\\(f=0.0f?\\)") checkNot(dmz, dpz) checkNot(fmz, fpz)