From 11b2c80a22786da9eca1f4845f21f211b882bf2e Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Mon, 8 Jun 2020 19:30:24 +0300 Subject: [PATCH] Replace if with a property to limit test to MacOS only --- backend.native/tests/build.gradle | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/backend.native/tests/build.gradle b/backend.native/tests/build.gradle index 0027333b460..265aa08c8f3 100644 --- a/backend.native/tests/build.gradle +++ b/backend.native/tests/build.gradle @@ -4491,13 +4491,11 @@ dependencies { compile 'junit:junit:4.12' } -// MacOS only: KT-30366 -if (target.family == Family.OSX) { - project.tasks.register("debugger_test", Test.class) { - testLogging { exceptionFormat = 'full' } - UtilsKt.dependsOnDist(it) - systemProperties = ['kotlin.native.home': dist] - } +project.tasks.register("debugger_test", Test.class) { + enabled = (target.family == Family.OSX) // KT-30366 + testLogging { exceptionFormat = 'full' } + UtilsKt.dependsOnDist(it) + systemProperties = ['kotlin.native.home': dist] } // Configure build for iOS device targets.