Fix testLogLevelForceGC
This commit is contained in:
+4
-4
@@ -151,13 +151,13 @@ class KotlinGradleIT: BaseGradleIT() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testLogLevelForceGC() {
|
fun testLogLevelForceGC() {
|
||||||
val debugProject = Project("simpleProject", GRADLE_VERSION, minLogLevel = LogLevel.DEBUG)
|
val debugProject = Project("simpleProject", GRADLE_VERSION, minLogLevel = LogLevel.LIFECYCLE)
|
||||||
debugProject.build("build") {
|
debugProject.build("build", "-Dkotlin.gradle.test.report.memory.usage=true") {
|
||||||
assertContains("Forcing System.gc()")
|
assertContains("Forcing System.gc()")
|
||||||
}
|
}
|
||||||
|
|
||||||
val infoProject = Project("simpleProject", GRADLE_VERSION, minLogLevel = LogLevel.INFO)
|
val infoProject = Project("simpleProject", GRADLE_VERSION, minLogLevel = LogLevel.QUIET)
|
||||||
infoProject.build("clean", "build") {
|
infoProject.build("clean", "build", "-Dkotlin.gradle.test.report.memory.usage=true") {
|
||||||
assertNotContains("Forcing System.gc()")
|
assertNotContains("Forcing System.gc()")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user