# HG changeset patch # User Doug Simon # Date 1364896381 -7200 # Node ID 5a3703970e3f7819d032e4d7905830199d0d6148 # Parent 19978b870b5f098b45bfa7b3488eeb31411a8075 share debug environment across multiple tests diff -r 19978b870b5f -r 5a3703970e3f graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Mon Apr 01 21:47:39 2013 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Tue Apr 02 11:53:01 2013 +0200 @@ -71,11 +71,15 @@ protected final Backend backend; public GraalCompilerTest() { - DebugEnvironment.initialize(System.out); this.runtime = Graal.getRequiredCapability(GraalCodeCacheProvider.class); this.backend = Graal.getRequiredCapability(Backend.class); } + @BeforeClass + public static void initializeDebgging() { + DebugEnvironment.initialize(System.out); + } + protected void assertEquals(StructuredGraph expected, StructuredGraph graph) { String expectedString = getCanonicalGraphString(expected); String actualString = getCanonicalGraphString(graph);