[Native][tests] Add an ability to fail tests on exceeded timeout

This commit is contained in:
Dmitriy Dolovov
2021-11-22 17:38:31 +03:00
parent a2ad9026a6
commit 34627633c4
8 changed files with 130 additions and 77 deletions
+3 -1
View File
@@ -46,7 +46,8 @@ enum class TestProperty(shortName: String) {
KOTLIN_NATIVE_HOME("nativeHome"),
COMPILER_CLASSPATH("compilerClasspath"),
TEST_MODE("mode"),
USE_CACHE("useCache");
USE_CACHE("useCache"),
EXECUTION_TIMEOUT("executionTimeout");
private val propertyName = "kotlin.internal.native.test.$shortName"
@@ -81,6 +82,7 @@ if (kotlinBuildProperties.isKotlinNativeEnabled) {
// Pass Gradle properties as JVM properties so test process can read them.
TestProperty.TEST_MODE.setUpFromGradleProperty(this)
TestProperty.USE_CACHE.setUpFromGradleProperty(this)
TestProperty.EXECUTION_TIMEOUT.setUpFromGradleProperty(this)
useJUnitPlatform()
}