commit | 4b71bd21f96b6a7c5074865519de63cd142895ea | [log] [tgz] |
---|---|---|
author | Nikolay Lunyak <nikolay.lunyak@jetbrains.com> | Wed Jun 21 18:33:34 2023 +0300 |
committer | Nikolay Lunyak <nikolay.lunyak@jetbrains.com> | Wed Jun 21 18:33:34 2023 +0300 |
tree | bafb9c14afc70605c021f19f0a1c1fc36d202139 | |
parent | 63e65a482c9a0b67b73c26e9a461dd0fad058c6a [diff] |
[Tests] Ignore temporary directories clearing failures It feels like otherwise the prints & stack traces are just too frequent, and can easily pollute the agent.
diff --git a/analysis/analysis-test-framework/tests/org/jetbrains/kotlin/analysis/test/framework/base/AbstractAnalysisApiBasedTest.kt b/analysis/analysis-test-framework/tests/org/jetbrains/kotlin/analysis/test/framework/base/AbstractAnalysisApiBasedTest.kt index 044ebbb..1a2d225 100644 --- a/analysis/analysis-test-framework/tests/org/jetbrains/kotlin/analysis/test/framework/base/AbstractAnalysisApiBasedTest.kt +++ b/analysis/analysis-test-framework/tests/org/jetbrains/kotlin/analysis/test/framework/base/AbstractAnalysisApiBasedTest.kt
@@ -160,8 +160,8 @@ fun cleanupTemporaryDirectories() { try { _testServices?.temporaryDirectoryManager?.cleanupTemporaryDirectories() - } catch (e: IOException) { - println("Failed to clean temporary directories: ${e.message}\n${e.stackTrace}") + } catch (_: IOException) { + // ignore } }
diff --git a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestRunner.kt b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestRunner.kt index c08ee2d..77116c8 100644 --- a/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestRunner.kt +++ b/compiler/test-infrastructure/tests/org/jetbrains/kotlin/test/TestRunner.kt
@@ -30,8 +30,8 @@ } finally { try { testConfiguration.testServices.temporaryDirectoryManager.cleanupTemporaryDirectories() - } catch (e: IOException) { - println("Failed to clean temporary directories: ${e.message}\n${e.stackTrace}") + } catch (_: IOException) { + // ignored } beforeDispose(testConfiguration) Disposer.dispose(testConfiguration.rootDisposable)