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:
+1
-1
@@ -112,7 +112,7 @@ class CoroutinesIT: BaseGradleIT() {
|
||||
}
|
||||
|
||||
build("build") {
|
||||
assertContains("-Xcoroutines=$coroutineSupport")
|
||||
assertContains("args.coroutinesState=$coroutineSupport")
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user