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 @@ -34,6 +34,7 @@ buildscript {
34
34
}
35
35
}
36
36
ext. jvm_ir_enabled = rootProject. properties[' enable_jvm_ir' ] != null
37
+ ext. jvm_ir_api_check_enabled = rootProject. properties[' enable_jvm_ir_api_check' ] != null
37
38
ext. native_targets_enabled = rootProject. properties[' disable_native_targets' ] == null
38
39
39
40
// Determine if any project dependency is using a snapshot version
@@ -325,3 +326,12 @@ knit {
325
326
}
326
327
327
328
knitPrepare. dependsOn getTasksByName(" dokka" , true )
329
+
330
+ // Disable binary compatibility check for JVM IR compiler output by default
331
+ if (jvm_ir_enabled) {
332
+ subprojects { project ->
333
+ configure(tasks. matching { it. name == " apiCheck" }) {
334
+ enabled = enabled && jvm_ir_api_check_enabled
335
+ }
336
+ }
337
+ }
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