# HG changeset patch # User Josef Eisl # Date 1428928303 -7200 # Node ID b14a235f06ebc4a35e08af298ea9f378f81b6c6f # Parent 518ce9a36939d45be7d4460c2dae2209404818b3 Do not run *AllocatorTest if RegisterPressure is specified. diff -r 518ce9a36939 -r b14a235f06eb graal/com.oracle.graal.compiler.amd64.test/src/com/oracle/graal/compiler/amd64/test/AMD64AllocatorTest.java --- a/graal/com.oracle.graal.compiler.amd64.test/src/com/oracle/graal/compiler/amd64/test/AMD64AllocatorTest.java Mon Apr 13 16:26:28 2015 -0700 +++ b/graal/com.oracle.graal.compiler.amd64.test/src/com/oracle/graal/compiler/amd64/test/AMD64AllocatorTest.java Mon Apr 13 14:31:43 2015 +0200 @@ -22,6 +22,7 @@ */ package com.oracle.graal.compiler.amd64.test; +import static com.oracle.graal.compiler.common.GraalOptions.*; import static org.junit.Assume.*; import org.junit.*; @@ -34,6 +35,7 @@ @Before public void checkAMD64() { assumeTrue("skipping AMD64 specific test", getTarget().arch instanceof AMD64); + assumeTrue("RegisterPressure is set -> skip", RegisterPressure.getValue() == null); } @Test diff -r 518ce9a36939 -r b14a235f06eb graal/com.oracle.graal.compiler.sparc.test/src/com/oracle/graal/compiler/sparc/test/SPARCAllocatorTest.java --- a/graal/com.oracle.graal.compiler.sparc.test/src/com/oracle/graal/compiler/sparc/test/SPARCAllocatorTest.java Mon Apr 13 16:26:28 2015 -0700 +++ b/graal/com.oracle.graal.compiler.sparc.test/src/com/oracle/graal/compiler/sparc/test/SPARCAllocatorTest.java Mon Apr 13 14:31:43 2015 +0200 @@ -22,6 +22,7 @@ */ package com.oracle.graal.compiler.sparc.test; +import static com.oracle.graal.compiler.common.GraalOptions.*; import static org.junit.Assume.*; import org.junit.*; @@ -34,6 +35,7 @@ @Before public void checkSPARC() { assumeTrue("skipping SPARC specific test", getTarget().arch instanceof SPARC); + assumeTrue("RegisterPressure is set -> skip", RegisterPressure.getValue() == null); } @Test