From 803405f8dd056456f78244bd9b20d7940b1d69d8 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Tue, 5 Apr 2011 12:15:32 +0400 Subject: [PATCH] Graphs are dumped only if an env var is set --- idea/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/idea/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java b/idea/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java index 497d973e08b..8d57695b88a 100644 --- a/idea/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java +++ b/idea/tests/org/jetbrains/jet/cfg/JetControlFlowTest.java @@ -4,7 +4,6 @@ package org.jetbrains.jet.cfg; import com.intellij.openapi.util.io.FileUtil; -import junit.framework.AssertionFailedError; import junit.framework.Test; import junit.framework.TestSuite; import org.jetbrains.annotations.NotNull; @@ -65,17 +64,13 @@ public class JetControlFlowTest extends JetTestCaseBase { }); try { - try { - processCFData(name, data); - } catch (AssertionFailedError e) { + processCFData(name, data); + if ("true".equals(System.getProperty("jet.control.flow.test.dump.graphs"))) { dumpDot(name, data.values()); - throw e; } - dumpDot(name, data.values()); } catch (IOException e) { throw new RuntimeException(e); } - } private void processCFData(String name, Map data) throws IOException {