comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/except/Throw_Synchronized01.java @ 8341:c38d2870439e

unittest: move testcases that takes longer than 100ms into longunittest
author Bernhard Urban <bernhard.urban@jku.at>
date Mon, 18 Mar 2013 13:21:05 +0100
parents 390448a6b535
children 64dcb92ee75a
comparison
equal deleted inserted replaced
8340:d9d883aeb96f 8341:c38d2870439e
22 */ 22 */
23 /* 23 /*
24 */ 24 */
25 package com.oracle.graal.jtt.except; 25 package com.oracle.graal.jtt.except;
26 26
27 import com.oracle.graal.test.*;
27 import com.oracle.graal.jtt.*; 28 import com.oracle.graal.jtt.*;
28 import org.junit.*;
29 29
30 public class Throw_Synchronized01 extends JTTTest { 30 public class Throw_Synchronized01 extends JTTTest {
31 31
32 public static synchronized boolean test(int i) throws Exception { 32 public static synchronized boolean test(int i) throws Exception {
33 return i == 0 || test2(i); 33 return i == 0 || test2(i);
36 @SuppressWarnings("unused") 36 @SuppressWarnings("unused")
37 public static boolean test2(int i) throws Exception { 37 public static boolean test2(int i) throws Exception {
38 throw new Exception(); 38 throw new Exception();
39 } 39 }
40 40
41 @Test 41 @LongTest
42 public void run0() throws Throwable { 42 public void run0() throws Throwable {
43 runTest("test", 0); 43 runTest("test", 0);
44 } 44 }
45 45
46 @Test 46 @LongTest
47 public void run1() throws Throwable { 47 public void run1() throws Throwable {
48 runTest("test", 1); 48 runTest("test", 1);
49 } 49 }
50 50
51 } 51 }