db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r636256 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java
Date Wed, 12 Mar 2008 09:00:42 GMT
Author: kahatlen
Date: Wed Mar 12 02:00:33 2008
New Revision: 636256

URL: http://svn.apache.org/viewvc?rev=636256&view=rev
Log:
DERBY-3521: Functionality for skipping testsuites on certain platforms fails for the new management
testsuite on phoneME advanced

Patch contributed by Vemund Østgaard <vemund@sun.com>.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java?rev=636256&r1=636255&r2=636256&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/AllPackages.java
Wed Mar 12 02:00:33 2008
@@ -20,6 +20,7 @@
  */
 package org.apache.derbyTesting.functionTests.suites;
 
+import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.Method;
 
 import junit.framework.Test;
@@ -100,6 +101,14 @@
         } catch (LinkageError  e) {
             return new TestSuite("SKIPPED: " + className + " - " +
                     e.getMessage());
+        } catch (InvocationTargetException ite) {
+            Throwable cause = ite.getCause();
+            if (cause instanceof LinkageError) {
+               return new TestSuite("SKIPPED: " + className + " - " +
+                       cause.getMessage());
+            } else {
+               throw ite;
+            }
         }
     }
 



Mime
View raw message