changeset 13159:447e912c345c

suppress messages about expected exception in HSAIL test
author Doug Simon <doug.simon@oracle.com>
date Mon, 25 Nov 2013 17:29:44 +0100
parents 53b1edcf628f
children f7504936fcea
files graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/StaticMethod16InArraysTest.java
diffstat 1 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/StaticMethod16InArraysTest.java	Mon Nov 25 17:28:15 2013 +0100
+++ b/graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/StaticMethod16InArraysTest.java	Mon Nov 25 17:29:44 2013 +0100
@@ -23,7 +23,10 @@
 
 package com.oracle.graal.compiler.hsail.test;
 
-import org.junit.Test;
+import org.junit.*;
+
+import com.oracle.graal.debug.*;
+import com.oracle.graal.debug.internal.*;
 
 /**
  * Tests the addition of elements from sixteen input arrays.
@@ -60,7 +63,17 @@
      */
     @Test(expected = java.lang.ClassCastException.class)
     public void test() {
-        testGeneratedHsail();
+        DebugConfig debugConfig = DebugScope.getConfig();
+        DebugConfig noInterceptConfig = new DelegatingDebugConfig(debugConfig) {
+            @Override
+            public RuntimeException interceptException(Throwable e) {
+                return null;
+            }
+        };
+
+        try (DebugConfigScope s = Debug.setConfig(noInterceptConfig)) {
+            testGeneratedHsail();
+        }
     }
 
 }