Mercurial > hg > truffle
comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/micro/BC_invokevirtual2.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 |
---|---|
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 | 23 |
24 package com.oracle.graal.jtt.micro; | 24 package com.oracle.graal.jtt.micro; |
25 | 25 |
26 import com.oracle.graal.jtt.*; | |
26 import org.junit.*; | 27 import org.junit.*; |
27 | 28 |
28 /* | 29 /* |
29 */ | 30 */ |
30 public class BC_invokevirtual2 { | 31 public class BC_invokevirtual2 extends JTTTest { |
31 | 32 |
32 static Unresolved object; | 33 static Unresolved object; |
33 | 34 |
34 public static class Unresolved { | 35 public static class Unresolved { |
35 | 36 |
49 return object().id(a); | 50 return object().id(a); |
50 } | 51 } |
51 | 52 |
52 @Test | 53 @Test |
53 public void run0() throws Throwable { | 54 public void run0() throws Throwable { |
54 Assert.assertEquals(0, test(0)); | 55 runTest("test", 0); |
55 } | 56 } |
56 | 57 |
57 @Test | 58 @Test |
58 public void run1() throws Throwable { | 59 public void run1() throws Throwable { |
59 Assert.assertEquals(1, test(1)); | 60 runTest("test", 1); |
60 } | 61 } |
61 | 62 |
62 @Test | 63 @Test |
63 public void run2() throws Throwable { | 64 public void run2() throws Throwable { |
64 Assert.assertEquals(2, test(2)); | 65 runTest("test", 2); |
65 } | 66 } |
66 | 67 |
67 @Test | 68 @Test |
68 public void run3() throws Throwable { | 69 public void run3() throws Throwable { |
69 Assert.assertEquals(3, test(3)); | 70 runTest("test", 3); |
70 } | 71 } |
71 | 72 |
72 @Test | 73 @Test |
73 public void run4() throws Throwable { | 74 public void run4() throws Throwable { |
74 Assert.assertEquals(-4, test(-4)); | 75 runTest("test", -4); |
75 } | 76 } |
76 | 77 |
77 } | 78 } |