Mercurial > hg > truffle
diff graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/except/Except_Locals.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 | b2161263e9f2 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/except/Except_Locals.java Thu Dec 20 13:14:56 2012 +0100 +++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/except/Except_Locals.java Thu Dec 20 14:59:57 2012 +0100 @@ -24,9 +24,10 @@ */ package com.oracle.graal.jtt.except; +import com.oracle.graal.jtt.*; import org.junit.*; -public class Except_Locals { +public class Except_Locals extends JTTTest { public static int test(String a, String b) { int x = 0; @@ -44,17 +45,17 @@ @Test public void run0() throws Throwable { - Assert.assertEquals(1, test(null, null)); + runTest("test", null, null); } @Test public void run1() throws Throwable { - Assert.assertEquals(2, test("", null)); + runTest("test", "", null); } @Test public void run2() throws Throwable { - Assert.assertEquals(-1, test("", "")); + runTest("test", "", ""); } }