changeset 4545:5d8eaed30aee

Fix unit test cases for new way of creating exception edges for invokes (i.e. only create edge if there was at least 1 exception at that place).
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 09 Feb 2012 13:39:07 +0100
parents 447018dd775f
children df329f268a05 c106c5e4f621
files graal/com.oracle.max.graal.tests/src/com/oracle/max/graal/compiler/tests/DegeneratedLoopsTest.java graal/com.oracle.max.graal.tests/src/com/oracle/max/graal/compiler/tests/NestedLoopTest.java
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.tests/src/com/oracle/max/graal/compiler/tests/DegeneratedLoopsTest.java	Thu Feb 09 13:21:33 2012 +0100
+++ b/graal/com.oracle.max.graal.tests/src/com/oracle/max/graal/compiler/tests/DegeneratedLoopsTest.java	Thu Feb 09 13:39:07 2012 +0100
@@ -46,7 +46,7 @@
         return 1;
     }
 
-    @Test(expected = AssertionFailedError.class)
+    @Test
     public void test1() {
         test("test1Snippet");
     }
--- a/graal/com.oracle.max.graal.tests/src/com/oracle/max/graal/compiler/tests/NestedLoopTest.java	Thu Feb 09 13:21:33 2012 +0100
+++ b/graal/com.oracle.max.graal.tests/src/com/oracle/max/graal/compiler/tests/NestedLoopTest.java	Thu Feb 09 13:39:07 2012 +0100
@@ -33,22 +33,22 @@
 
     @Test
     public void test1() {
-        test("test1Snippet", 5, 5, 4);
+        test("test1Snippet", 1, 2, 2);
     }
 
     @Test
     public void test2() {
-        test("test2Snippet", 2, 5, 4);
+        test("test2Snippet", 1, 2, 2);
     }
 
     @Test
     public void test3() {
-        test("test3Snippet", 1, 5, 4);
+        test("test3Snippet", 1, 2, 2);
     }
 
     @Test
     public void test4() {
-        test("test4Snippet", 1, 6, 4);
+        test("test4Snippet", 1, 3, 2);
     }
 
     @SuppressWarnings("all")