Fix Daemon compiler tests on Windows
In 202 platform tearDown tries to remove temporary directory, but this
fails on Windows, because while Daemon is active directory can't be
deleted.
Original commit: 2ffedd2731
This commit is contained in:
@@ -54,6 +54,16 @@ class JpsKotlinCompilerRunner {
|
||||
private var _jpsCompileServiceSession: CompileServiceSession? = null
|
||||
|
||||
@TestOnly
|
||||
fun shutdownDaemon() {
|
||||
_jpsCompileServiceSession?.let {
|
||||
try {
|
||||
it.compileService.shutdown()
|
||||
} catch (_: Throwable) {
|
||||
}
|
||||
}
|
||||
_jpsCompileServiceSession = null
|
||||
}
|
||||
|
||||
fun releaseCompileServiceSession() {
|
||||
_jpsCompileServiceSession?.let {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user