changeset 18569:88a0c46687d9

Rename AllocatorTest.test to testAllocation to avoid confusion with GraalCompilerTest.test.
author Josef Eisl <josef.eisl@jku.at>
date Wed, 26 Nov 2014 19:27:59 +0100
parents c91f49e8d5ac
children a65c1032f400
files graal/com.oracle.graal.compiler.amd64.test/src/com/oracle/graal/compiler/amd64/test/AMD64AllocatorTest.java graal/com.oracle.graal.compiler.sparc.test/src/com/oracle/graal/compiler/sparc/test/SPARCAllocatorTest.java graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/backend/AllocatorTest.java
diffstat 3 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.amd64.test/src/com/oracle/graal/compiler/amd64/test/AMD64AllocatorTest.java	Wed Nov 26 19:12:49 2014 +0100
+++ b/graal/com.oracle.graal.compiler.amd64.test/src/com/oracle/graal/compiler/amd64/test/AMD64AllocatorTest.java	Wed Nov 26 19:27:59 2014 +0100
@@ -38,7 +38,7 @@
 
     @Test
     public void test1() {
-        test("test1snippet", 3, 1, 0);
+        testAllocation("test1snippet", 3, 1, 0);
     }
 
     public static long test1snippet(long x) {
@@ -47,7 +47,7 @@
 
     @Test
     public void test2() {
-        test("test2snippet", 3, 0, 0);
+        testAllocation("test2snippet", 3, 0, 0);
     }
 
     public static long test2snippet(long x) {
@@ -57,7 +57,7 @@
     @Ignore
     @Test
     public void test3() {
-        test("test3snippet", 4, 1, 0);
+        testAllocation("test3snippet", 4, 1, 0);
     }
 
     public static long test3snippet(long x) {
--- a/graal/com.oracle.graal.compiler.sparc.test/src/com/oracle/graal/compiler/sparc/test/SPARCAllocatorTest.java	Wed Nov 26 19:12:49 2014 +0100
+++ b/graal/com.oracle.graal.compiler.sparc.test/src/com/oracle/graal/compiler/sparc/test/SPARCAllocatorTest.java	Wed Nov 26 19:27:59 2014 +0100
@@ -38,7 +38,7 @@
 
     @Test
     public void test1() {
-        test("test1snippet", 1, 0, 0);
+        testAllocation("test1snippet", 1, 0, 0);
     }
 
     public static long test1snippet(long x) {
@@ -47,7 +47,7 @@
 
     @Test
     public void test2() {
-        test("test2snippet", 2, 1, 0);
+        testAllocation("test2snippet", 2, 1, 0);
     }
 
     public static long test2snippet(long x) {
@@ -56,7 +56,7 @@
 
     @Test
     public void test3() {
-        test("test3snippet", 3, 1, 0);
+        testAllocation("test3snippet", 3, 1, 0);
     }
 
     public static long test3snippet(long x) {
--- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/backend/AllocatorTest.java	Wed Nov 26 19:12:49 2014 +0100
+++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/backend/AllocatorTest.java	Wed Nov 26 19:27:59 2014 +0100
@@ -37,7 +37,7 @@
 
 public class AllocatorTest extends BackendTest {
 
-    protected void test(String snippet, final int expectedRegisters, final int expectedRegRegMoves, final int expectedSpillMoves) {
+    protected void testAllocation(String snippet, final int expectedRegisters, final int expectedRegRegMoves, final int expectedSpillMoves) {
         final StructuredGraph graph = parseEager(snippet);
         try (Scope s = Debug.scope("AllocatorTest", graph, graph.method(), getCodeCache())) {
             final RegisterStats stats = new RegisterStats(getLIRGenerationResult(graph).getLIR());