You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2009/05/13 07:42:12 UTC

svn commit: r774215 - /camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java

Author: davsclaus
Date: Wed May 13 05:42:12 2009
New Revision: 774215

URL: http://svn.apache.org/viewvc?rev=774215&view=rev
Log:
Skipping test if hp-ux as the server is just to slow and we want it to progress and test other parts.

Modified:
    camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java

Modified: camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java?rev=774215&r1=774214&r2=774215&view=diff
==============================================================================
--- camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java (original)
+++ camel/branches/camel-1.x/camel-core/src/test/java/org/apache/camel/processor/RoutePerformanceTest.java Wed May 13 05:42:12 2009
@@ -34,6 +34,10 @@
     protected SimpleDataSet dataSet = new SimpleDataSet(1000);
 
     public void testPerformance() throws Exception {
+        if (!canRunOnThisPlatform()) {
+            return;
+        }
+
         long start = System.currentTimeMillis();
 
         MockEndpoint endpoint = getMockEndpoint("mock:results");
@@ -46,6 +50,12 @@
         System.out.println("RoutePerformanceTest: Took: " + delta + " ms");
     }
 
+    private boolean canRunOnThisPlatform() {
+        String os = System.getProperty("os.name");
+        // HP-UX is just to slow to run this test
+        return !os.toLowerCase().contains("hp-ux");
+    }
+
     @Override
     protected Context createJndiContext() throws Exception {
         Map<String, Object> headers = new HashMap<String, Object>();