diff --git a/utils/test/src/main/kotlin/Utils.kt b/utils/test/src/main/kotlin/Utils.kt index d80c3b29d595e..bd5d027d81a16 100644 --- a/utils/test/src/main/kotlin/Utils.kt +++ b/utils/test/src/main/kotlin/Utils.kt @@ -89,11 +89,13 @@ fun patchExpectedResult( definitionFile: File? = null, custom: Map = emptyMap() ): String { + val env = Environment() + val replacements = buildMap { - put("", System.getProperty("java.version")) - put("", System.getProperty("os.name")) - put("\"\"", Runtime.getRuntime().availableProcessors().toString()) - put("\"\"", Runtime.getRuntime().maxMemory().toString()) + put("", env.javaVersion) + put("", env.os) + put("\"\"", env.processors.toString()) + put("\"\"", env.maxMemory.toString()) if (definitionFile != null) { val projectDir = definitionFile.parentFile