From ac5f1e43b1fbbc9669f3b6448137441defd0d145 Mon Sep 17 00:00:00 2001 From: Dmitry Batrak Date: Thu, 5 Nov 2015 21:51:17 +0300 Subject: [PATCH] make sure seed and iteration are always logged, even if thrown exception is discarded upper in the call stack --- .../com/intellij/openapi/editor/impl/EditorStressTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/EditorStressTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/EditorStressTest.java index 48ce8895a33d..9cd6b7d0e6dd 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/EditorStressTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/editor/impl/EditorStressTest.java @@ -56,7 +56,9 @@ public class EditorStressTest extends AbstractEditorTest { } } catch (Throwable t) { - throw new RuntimeException("Failed when run with seed=" + mySeed + " in iteration " + i, t); + String message = "Failed when run with seed=" + mySeed + " in iteration " + i; + System.out.println(message); + throw new RuntimeException(message, t); } }