Update tests after compiler properties rework

#KT-43605 Fixed
This commit is contained in:
Alexander Likhachev
2021-02-14 09:53:16 +03:00
parent 3537c699b5
commit 70d434e992
10 changed files with 63 additions and 53 deletions
@@ -45,6 +45,8 @@ enum class CompilerSystemProperties(val property: String) {
systemPropertySetter(property, value!!)
}
fun clear(): String? = systemPropertyCleaner(property)
companion object {
var systemPropertyGetter: (String) -> String? = {
System.getProperty(it)
@@ -53,6 +55,10 @@ enum class CompilerSystemProperties(val property: String) {
var systemPropertySetter: (String, String) -> String? = { key, value ->
System.setProperty(key, value)
}
var systemPropertyCleaner: (String) -> String? = { key ->
System.clearProperty(key)
}
}
}