File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ buildscript {
35
35
}
36
36
// These three flags are enabled in train builds for JVM IR compiler testing
37
37
ext. jvm_ir_enabled = rootProject. properties[' enable_jvm_ir' ] != null
38
+ ext. jvm_ir_api_check_enabled = rootProject. properties[' enable_jvm_ir_api_check' ] != null
38
39
ext. native_targets_enabled = rootProject. properties[' disable_native_targets' ] == null
39
40
40
41
// Determine if any project dependency is using a snapshot version
@@ -326,3 +327,12 @@ knit {
326
327
}
327
328
328
329
knitPrepare. dependsOn getTasksByName(" dokka" , true )
330
+
331
+ // Disable binary compatibility check for JVM IR compiler output by default
332
+ if (jvm_ir_enabled) {
333
+ subprojects { project ->
334
+ configure(tasks. matching { it. name == " apiCheck" }) {
335
+ enabled = enabled && jvm_ir_api_check_enabled
336
+ }
337
+ }
338
+ }
Original file line number Diff line number Diff line change @@ -190,6 +190,14 @@ jvmTest {
190
190
exclude ' **/*StressTest.*'
191
191
}
192
192
systemProperty ' kotlinx.coroutines.scheduler.keep.alive.sec' , ' 100000' // any unpark problem hangs test
193
+
194
+ // TODO: JVM IR generates different stacktrace so temporary disable stacktrace tests
195
+ if (rootProject. ext. jvm_ir_enabled) {
196
+ filter {
197
+ excludeTest(' kotlinx.coroutines.debug.CoroutinesDumpTest' , ' testCreationStackTrace' )
198
+ excludeTestsMatching(' kotlinx.coroutines.exceptions.StackTraceRecovery*' )
199
+ }
200
+ }
193
201
}
194
202
195
203
jvmJar {
Original file line number Diff line number Diff line change @@ -28,6 +28,16 @@ dependencies {
28
28
api " net.java.dev.jna:jna-platform:$jna_version "
29
29
}
30
30
31
+ // TODO: JVM IR generates different stacktrace so temporary disable stacktrace tests
32
+ if (rootProject. ext. jvm_ir_enabled) {
33
+ tasks. named(' test' , Test ) {
34
+ filter {
35
+ excludeTest(' kotlinx.coroutines.debug.CoroutinesDumpTest' , ' testCreationStackTrace' )
36
+ excludeTestsMatching(' kotlinx.coroutines.debug.DebugProbesTest' )
37
+ }
38
+ }
39
+ }
40
+
31
41
jar {
32
42
manifest {
33
43
attributes " Premain-Class" : " kotlinx.coroutines.debug.AgentPremain"
You can’t perform that action at this time.
0 commit comments