activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1462346 - /activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
Date Thu, 28 Mar 2013 23:12:48 GMT
Author: tabish
Date: Thu Mar 28 23:12:48 2013
New Revision: 1462346

URL: http://svn.apache.org/r1462346
Log:
patch some test code: https://issues.apache.org/jira/browse/AMQ-4296

Modified:
    activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java

Modified: activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java?rev=1462346&r1=1462345&r2=1462346&view=diff
==============================================================================
--- activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
(original)
+++ activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverTransactionTest.java
Thu Mar 28 23:12:48 2013
@@ -143,8 +143,14 @@ public class FailoverTransactionTest ext
     }
 
     public void initCombosForTestFailoverCommitReplyLost() {
-        addCombinationValues("defaultPersistenceAdapter",
-                new Object[]{PersistenceAdapterChoice.KahaDB, PersistenceAdapterChoice.LevelDB,
PersistenceAdapterChoice.JDBC});
+        String osName = System.getProperty("os.name");
+        Object[] persistenceAdapters;
+        if (!osName.equalsIgnoreCase("AIX") && !osName.equalsIgnoreCase("SunOS"))
{
+            persistenceAdapters = new Object[]{PersistenceAdapterChoice.KahaDB, PersistenceAdapterChoice.LevelDB,
PersistenceAdapterChoice.JDBC};
+        } else {
+            persistenceAdapters = new Object[]{PersistenceAdapterChoice.KahaDB, PersistenceAdapterChoice.JDBC};
+        }
+        addCombinationValues("defaultPersistenceAdapter",persistenceAdapters);
     }
 
     @SuppressWarnings("unchecked")



Mime
View raw message