Fix tests for coroutines setting in Gradle

ArgumentUtils#convertArgumentsToStringList does not
serialize an argument with default value,
so the string "-Xcoroutines=warn" was no longer present in logs.
This commit is contained in:
Alexey Tsvetkov
2017-05-27 17:46:30 +03:00
parent 0a17dc3229
commit a8263361c0
2 changed files with 3 additions and 1 deletions
@@ -112,7 +112,7 @@ class CoroutinesIT: BaseGradleIT() {
}
build("build") {
assertContains("-Xcoroutines=$coroutineSupport")
assertContains("args.coroutinesState=$coroutineSupport")
}
}
}
@@ -157,6 +157,8 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractCo
Coroutines.ERROR -> CommonCompilerArguments.ERROR
}
logger.kotlinDebug { "args.coroutinesState=${args.coroutinesState}" }
if (project.logger.isDebugEnabled) {
args.verbose = true
}