From c570ebb711f84c800ea2eea90e68ef73a4daedae Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Fri, 26 Aug 2022 12:25:02 +0200 Subject: [PATCH] IDEA-299881 restore System.out after redirecting it in test GitOrigin-RevId: 67c35107afbbdc8334145591c75469bc82a5b85d --- .../com/intellij/workspaceModel/ide/ModuleBridgesTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/workspaceModel/jps/tests/testSrc/com/intellij/workspaceModel/ide/ModuleBridgesTest.kt b/platform/workspaceModel/jps/tests/testSrc/com/intellij/workspaceModel/ide/ModuleBridgesTest.kt index 223e45bacdfb..6a56d99c1242 100644 --- a/platform/workspaceModel/jps/tests/testSrc/com/intellij/workspaceModel/ide/ModuleBridgesTest.kt +++ b/platform/workspaceModel/jps/tests/testSrc/com/intellij/workspaceModel/ide/ModuleBridgesTest.kt @@ -825,6 +825,7 @@ class ModuleBridgesTest { } fun catchLog(): String { + val prev = System.out return try { val outCatcher = OutCatcher(System.out) System.setOut(outCatcher) @@ -832,7 +833,7 @@ class ModuleBridgesTest { outCatcher.catcher } finally { - System.setOut(System.out) + System.setOut(prev) } } }