comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/hotpath/HP_life.java @ 7282:390448a6b535

converted the JTT tests to use the GraalCompilerTest framework which offers more control over what is compiled and executed the HP_series and FloatingReads tests have been disabled temporarily
author Doug Simon <doug.simon@oracle.com>
date Thu, 20 Dec 2012 14:59:57 +0100
parents e808627bd16f
children c38d2870439e
comparison
equal deleted inserted replaced
7281:e960cda050d7 7282:390448a6b535
23 // Checkstyle: stop 23 // Checkstyle: stop
24 package com.oracle.graal.jtt.hotpath; 24 package com.oracle.graal.jtt.hotpath;
25 25
26 import java.util.*; 26 import java.util.*;
27 27
28 import com.oracle.graal.jtt.*;
28 import org.junit.*; 29 import org.junit.*;
29 30
30 /* 31 /*
31 */ 32 */
32 public class HP_life { 33 public class HP_life extends JTTTest {
33 34
34 public static int test(int generations) { 35 public static int test(int generations) {
35 reset(); 36 reset();
36 for (int i = 0; i < generations; ++i) { 37 for (int i = 0; i < generations; ++i) {
37 step(); 38 step();
106 } 107 }
107 } 108 }
108 109
109 @Test 110 @Test
110 public void run0() throws Throwable { 111 public void run0() throws Throwable {
111 Assert.assertEquals(-1756613086, test(5)); 112 runTest("test", 5);
112 } 113 }
113 114
114 } 115 }