diff graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/lang/Int_greater03.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
line wrap: on
line diff
--- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/lang/Int_greater03.java	Thu Dec 20 13:14:56 2012 +0100
+++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/lang/Int_greater03.java	Thu Dec 20 14:59:57 2012 +0100
@@ -24,10 +24,10 @@
  */
 package com.oracle.graal.jtt.lang;
 
+import com.oracle.graal.jtt.*;
 import org.junit.*;
 
-@SuppressWarnings("static-method")
-public final class Int_greater03 {
+public final class Int_greater03 extends JTTTest {
 
     public static boolean test(int i) {
         if (i > -5) {
@@ -38,47 +38,47 @@
 
     @Test
     public void run0() throws Throwable {
-        Assert.assertEquals(false, test(-2147483648));
+        runTest("test", -2147483648);
     }
 
     @Test
     public void run1() throws Throwable {
-        Assert.assertEquals(false, test(-6));
+        runTest("test", -6);
     }
 
     @Test
     public void run2() throws Throwable {
-        Assert.assertEquals(false, test(-5));
+        runTest("test", -5);
     }
 
     @Test
     public void run3() throws Throwable {
-        Assert.assertEquals(true, test(-4));
+        runTest("test", -4);
     }
 
     @Test
     public void run4() throws Throwable {
-        Assert.assertEquals(true, test(-1));
+        runTest("test", -1);
     }
 
     @Test
     public void run5() throws Throwable {
-        Assert.assertEquals(true, test(0));
+        runTest("test", 0);
     }
 
     @Test
     public void run6() throws Throwable {
-        Assert.assertEquals(true, test(1));
+        runTest("test", 1);
     }
 
     @Test
     public void run7() throws Throwable {
-        Assert.assertEquals(true, test(2));
+        runTest("test", 2);
     }
 
     @Test
     public void run8() throws Throwable {
-        Assert.assertEquals(true, test(2147483647));
+        runTest("test", 2147483647);
     }
 
 }