# HG changeset patch # User Bernhard Urban # Date 1370546563 -7200 # Node ID ab90954e5fecee1efd783c4b1adf9dc7df226a5b # Parent 2c82f780bff5d1c40b1db19e03065ddedce8bf16 unittest/aot: disable one part of the test setting the option to a different value after it was already used, is not a good idea. I've to come up with a different solution to test it. diff -r 2c82f780bff5 -r ab90954e5fec graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/AheadOfTimeCompilationTest.java --- a/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/AheadOfTimeCompilationTest.java Thu Jun 06 17:26:22 2013 +0200 +++ b/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/AheadOfTimeCompilationTest.java Thu Jun 06 21:22:43 2013 +0200 @@ -56,14 +56,18 @@ } @Test - public void testStaticFinalObject() { + @Ignore + public void testStaticFinalObject1() { + StructuredGraph result2 = compile("getStaticFinalObject", true); + assert result2.getNodes().filter(ConstantNode.class).count() == 1; + assert result2.getNodes(FloatingReadNode.class).count() == 1; + } + + @Test + public void testStaticFinalObject2() { StructuredGraph result1 = compile("getStaticFinalObject", false); assert result1.getNodes().filter(ConstantNode.class).count() == 1; assert result1.getNodes(FloatingReadNode.class).count() == 0; - - StructuredGraph result2 = compile("getStaticFinalObject", true); - assert result2.getNodes().filter(ConstantNode.class).count() == 1; - assert result2.getNodes(FloatingReadNode.class).count() == 1; } private StructuredGraph compile(String test, boolean compileAOT) {