comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/except/BC_lrem.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
23 /* 23 /*
24 */ 24 */
25 25
26 package com.oracle.graal.jtt.except; 26 package com.oracle.graal.jtt.except;
27 27
28 import com.oracle.graal.jtt.*;
28 import org.junit.*; 29 import org.junit.*;
29 30
30 public class BC_lrem { 31 public class BC_lrem extends JTTTest {
31 32
32 public static long test(long a, long b) { 33 public static long test(long a, long b) {
33 return a % b; 34 return a % b;
34 } 35 }
35 36
36 @Test 37 @Test
37 public void run0() throws Throwable { 38 public void run0() throws Throwable {
38 Assert.assertEquals(1L, test(1L, 2L)); 39 runTest("test", 1L, 2L);
39 } 40 }
40 41
41 @Test(expected = java.lang.ArithmeticException.class) 42 @Test
42 public void run1() throws Throwable { 43 public void run1() throws Throwable {
43 test(11L, 0L); 44 runTest("test", 11L, 0L);
44 } 45 }
45 46
46 } 47 }