File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/functionalTest/kotlin/kotlinx/validation/test Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -752,4 +752,26 @@ internal class KlibVerificationTests : BaseKotlinGradleTest() {
752
752
assertTaskFailure(" :klibApiCheck" )
753
753
}
754
754
}
755
+
756
+ @Test
757
+ fun `apiCheck should fail after target removal` () {
758
+ val runner = test {
759
+ settingsGradleKts {
760
+ resolve(" /examples/gradle/settings/settings-name-testproject.gradle.kts" )
761
+ }
762
+ // only a single native target is defined there
763
+ buildGradleKts {
764
+ resolve(" /examples/gradle/base/withNativePluginAndSingleTarget.gradle.kts" )
765
+ }
766
+ addToSrcSet(" /examples/classes/AnotherBuildConfig.kt" )
767
+ // dump was created for multiple native targets
768
+ abiFile(projectName = " testproject" ) {
769
+ resolve(" /examples/classes/AnotherBuildConfig.klib.dump" )
770
+ }
771
+ runApiCheck()
772
+ }
773
+ runner.buildAndFail().apply {
774
+ assertTaskFailure(" :klibApiCheck" )
775
+ }
776
+ }
755
777
}
You can’t perform that action at this time.
0 commit comments