IDEA-299881 restore System.out after redirecting it in test

GitOrigin-RevId: 67c35107afbbdc8334145591c75469bc82a5b85d
This commit is contained in:
Roland Illig
2022-08-26 11:54:57 +00:00
committed by intellij-monorepo-bot
parent 06a40bca3c
commit c570ebb711
@@ -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)
}
}
}