comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/VN_Field02.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 64dcb92ee75a
comparison
equal deleted inserted replaced
7281:e960cda050d7 7282:390448a6b535
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.jtt.optimize; 23 package com.oracle.graal.jtt.optimize;
24 24
25 import com.oracle.graal.jtt.*;
25 import org.junit.*; 26 import org.junit.*;
26 27
27 /* 28 /*
28 * Tests constant folding of integer operations. 29 * Tests constant folding of integer operations.
29 */ 30 */
30 public class VN_Field02 { 31 public class VN_Field02 extends JTTTest {
31 32
32 private static boolean cond = true; 33 private static boolean cond = true;
33 static final VN_Field02 object = new VN_Field02(); 34 static final VN_Field02 object = new VN_Field02();
34 35
35 int field = 9; 36 int field = 9;
75 return 0; 76 return 0;
76 } 77 }
77 78
78 @Test 79 @Test
79 public void run0() throws Throwable { 80 public void run0() throws Throwable {
80 Assert.assertEquals(18, test(0)); 81 runTest("test", 0);
81 } 82 }
82 83
83 @Test 84 @Test
84 public void run1() throws Throwable { 85 public void run1() throws Throwable {
85 Assert.assertEquals(18, test(1)); 86 runTest("test", 1);
86 } 87 }
87 88
88 @Test(expected = java.lang.NullPointerException.class) 89 @Test
89 public void run2() throws Throwable { 90 public void run2() throws Throwable {
90 test(2); 91 runTest("test", 2);
91 } 92 }
92 93
93 } 94 }