[IC] Add test for lookups flushing

#KT-53168
This commit is contained in:
Aleksei.Cherepanov
2022-07-13 18:28:17 +02:00
committed by Space
parent 7d6cf449b1
commit 0950205a47
18 changed files with 175 additions and 0 deletions
@@ -627,6 +627,11 @@ public class IncrementalFirICLightTreeJvmCompilerRunnerTestGenerated extends Abs
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
@@ -627,6 +627,11 @@ public class IncrementalFirJvmCompilerRunnerTestGenerated extends AbstractIncrem
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
@@ -627,6 +627,11 @@ public class IncrementalFirLightTreeJvmCompilerRunnerTestGenerated extends Abstr
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
@@ -631,6 +631,11 @@ public class IncrementalJsCompilerRunnerTestGenerated extends AbstractIncrementa
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
@@ -631,6 +631,11 @@ public class IncrementalJsCompilerRunnerWithMetadataOnlyTestGenerated extends Ab
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
@@ -596,6 +596,11 @@ public class IncrementalJsKlibCompilerRunnerTestGenerated extends AbstractIncrem
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
@@ -596,6 +596,11 @@ public class IncrementalJsKlibCompilerWithScopeExpansionRunnerTestGenerated exte
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
@@ -632,6 +632,11 @@ public class IncrementalJvmCompilerRunnerTestGenerated extends AbstractIncrement
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
@@ -632,6 +632,11 @@ public class IncrementalJvmOldBackendCompilerRunnerTestGenerated extends Abstrac
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
@@ -1301,6 +1301,11 @@ public class IncrementalJvmJpsTestGenerated extends AbstractIncrementalJvmJpsTes
runTest("jps/jps-plugin/testData/incremental/pureKotlin/secondaryConstructorInlined/");
}
@TestMetadata("sequentualAddingAndDeletingOfPropertyAndUsage")
public void testSequentualAddingAndDeletingOfPropertyAndUsage() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/sequentualAddingAndDeletingOfPropertyAndUsage/");
}
@TestMetadata("serializedSubClassAndChangedInterfaces")
public void testSerializedSubClassAndChangedInterfaces() throws Exception {
runTest("jps/jps-plugin/testData/incremental/pureKotlin/serializedSubClassAndChangedInterfaces/");
@@ -0,0 +1,4 @@
data class DatClass(
val a: Boolean = false,
val b: Int = 1
)
@@ -0,0 +1,3 @@
data class DatClass(
val a: Boolean = false
)
@@ -0,0 +1,4 @@
data class DatClass(
val a: Boolean = false,
val b: Int = 1
)
@@ -0,0 +1,3 @@
data class DatClass(
val a: Boolean = false,
)
@@ -0,0 +1,94 @@
================ Step #1 =================
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/MainKt.class
End of files
Compiling files:
src/main.kt
End of files
Exit code: OK
------------------------------------------
================ Step #2 =================
Cleaning output files:
out/production/module/DatClass.class
out/production/module/META-INF/module.kotlin_module
End of files
Compiling files:
src/DataClass.kt
End of files
After build round. Marked as dirty by Kotlin:
src/main.kt
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/MainKt.class
End of files
Compiling files:
src/main.kt
End of files
Exit code: OK
------------------------------------------
================ Step #3 =================
Cleaning output files:
out/production/module/DatClass.class
out/production/module/META-INF/module.kotlin_module
End of files
Compiling files:
src/DataClass.kt
End of files
After build round. Marked as dirty by Kotlin:
src/main.kt
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/MainKt.class
End of files
Compiling files:
src/main.kt
End of files
Exit code: OK
------------------------------------------
================ Step #4 =================
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/MainKt.class
End of files
Compiling files:
src/main.kt
End of files
Exit code: OK
------------------------------------------
================ Step #5 =================
Cleaning output files:
out/production/module/DatClass.class
out/production/module/META-INF/module.kotlin_module
End of files
Compiling files:
src/DataClass.kt
End of files
After build round. Marked as dirty by Kotlin:
src/main.kt
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Cleaning output files:
out/production/module/META-INF/module.kotlin_module
out/production/module/MainKt.class
End of files
Compiling files:
src/main.kt
End of files
Exit code: ABORT
------------------------------------------
COMPILATION FAILED
Cannot find a parameter with this name: b
@@ -0,0 +1,6 @@
fun main(args: Array<String>) {
DatClass(
a=true,
b= 3
)
}
@@ -0,0 +1,5 @@
fun main(args: Array<String>) {
DatClass(
a=true
)
}
@@ -0,0 +1,6 @@
fun main(args: Array<String>) {
DatClass(
a=true,
b= 3
)
}