Skip to content

Commit 0b16abf

Browse files
committed
Fix propagation for stressTest property for nightly stress tests
Also enable assertions and test output while running (long) LFStressTest
1 parent 5fb56f4 commit 0b16abf

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ allprojects {
9898
}
9999

100100
ext.unpublished = unpublished
101+
102+
// This project property is set during nightly stress test
103+
def stressTest = project.properties['stressTest']
104+
105+
// Copy it to all test tasks
106+
tasks.withType(Test) {
107+
systemProperty 'stressTest', stressTest
108+
}
101109
}
102110

103111
allprojects {

kotlinx-coroutines-core/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ task lockFreedomTest(type: Test, dependsOn: compileTestKotlinJvm) {
8080
classpath = files { jvmTest.classpath }
8181
testClassesDirs = files { jvmTest.testClassesDirs }
8282
include '**/*LFStressTest.*'
83+
enableAssertions = true
84+
testLogging.showStandardStreams = true
8385
}
8486

8587
task jdk16Test(type: Test, dependsOn: [compileTestKotlinJvm, checkJdk16]) {

0 commit comments

Comments
 (0)