[K/N] Support running with thread sanitizer in test infra

This commit is contained in:
Pavel Kunyavskiy
2022-07-28 15:52:00 +02:00
committed by Space
parent 434872c5a9
commit 828811a47f
6 changed files with 30 additions and 4 deletions
+3 -1
View File
@@ -57,7 +57,8 @@ enum class TestProperty(shortName: String) {
GC_TYPE("gcType"),
GC_SCHEDULER("gcScheduler"),
CACHE_MODE("cacheMode"),
EXECUTION_TIMEOUT("executionTimeout");
EXECUTION_TIMEOUT("executionTimeout"),
SANITIZER("sanitizer");
private val propertyName = "kotlin.internal.native.test.$shortName"
@@ -130,6 +131,7 @@ fun nativeTest(taskName: String, vararg tags: String) = projectTest(
TestProperty.GC_SCHEDULER.setUpFromGradleProperty(this)
TestProperty.CACHE_MODE.setUpFromGradleProperty(this)
TestProperty.EXECUTION_TIMEOUT.setUpFromGradleProperty(this)
TestProperty.SANITIZER.setUpFromGradleProperty(this)
// Pass the current Gradle task name so test can use it in logging.
environment("GRADLE_TASK_NAME", path)