diff options
author | Roman Elizarov <elizarov@gmail.com> | 2019-09-03 11:07:11 +0300 |
---|---|---|
committer | Roman Elizarov <elizarov@gmail.com> | 2019-09-04 15:36:11 +0300 |
commit | 0b16abf56351c8f9d35ac67909c5ef1855b551bd (patch) | |
tree | fd64e567f79d8380275fe56ff2acd1d2ed9c9616 | |
parent | 5fb56f4281740cf65e81beb819f1dc14c5ed8e6d (diff) | |
download | kotlinx.coroutines-0b16abf56351c8f9d35ac67909c5ef1855b551bd.tar.gz |
Fix propagation for stressTest property for nightly stress tests
Also enable assertions and test output while running (long) LFStressTest
-rw-r--r-- | build.gradle | 8 | ||||
-rw-r--r-- | kotlinx-coroutines-core/build.gradle | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 46e8fbc3..66425380 100644 --- a/build.gradle +++ b/build.gradle @@ -98,6 +98,14 @@ allprojects { } ext.unpublished = unpublished + + // This project property is set during nightly stress test + def stressTest = project.properties['stressTest'] + + // Copy it to all test tasks + tasks.withType(Test) { + systemProperty 'stressTest', stressTest + } } allprojects { diff --git a/kotlinx-coroutines-core/build.gradle b/kotlinx-coroutines-core/build.gradle index 461b8350..4e15b639 100644 --- a/kotlinx-coroutines-core/build.gradle +++ b/kotlinx-coroutines-core/build.gradle @@ -80,6 +80,8 @@ task lockFreedomTest(type: Test, dependsOn: compileTestKotlinJvm) { classpath = files { jvmTest.classpath } testClassesDirs = files { jvmTest.testClassesDirs } include '**/*LFStressTest.*' + enableAssertions = true + testLogging.showStandardStreams = true } task jdk16Test(type: Test, dependsOn: [compileTestKotlinJvm, checkJdk16]) { |