Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D11E9C2F for ; Tue, 14 Feb 2012 18:23:26 +0000 (UTC) Received: (qmail 51330 invoked by uid 500); 14 Feb 2012 18:23:26 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 51282 invoked by uid 500); 14 Feb 2012 18:23:26 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 51272 invoked by uid 99); 14 Feb 2012 18:23:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 18:23:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 18:23:24 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5DBD723888E7 for ; Tue, 14 Feb 2012 18:23:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1244145 - in /cxf/trunk: parent/pom.xml testutils/src/main/java/org/apache/cxf/testutil/common/TestUtil.java Date: Tue, 14 Feb 2012 18:23:02 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120214182303.5DBD723888E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dkulp Date: Tue Feb 14 18:23:02 2012 New Revision: 1244145 URL: http://svn.apache.org/viewvc?rev=1244145&view=rev Log: The serversocket lock doesn't seem to be 100% reliable. Stick with a randomo starting point Modified: cxf/trunk/parent/pom.xml cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/TestUtil.java Modified: cxf/trunk/parent/pom.xml URL: http://svn.apache.org/viewvc/cxf/trunk/parent/pom.xml?rev=1244145&r1=1244144&r2=1244145&view=diff ============================================================================== --- cxf/trunk/parent/pom.xml (original) +++ cxf/trunk/parent/pom.xml Tue Feb 14 18:23:02 2012 @@ -370,6 +370,7 @@ ${cxf.surefire.fork.vmargs} ${cxf.surefire.parallel.mode} + true ${cxf.protect-xmlschema-collections} ${cxf.validateServices} ${java.awt.headless} Modified: cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/TestUtil.java URL: http://svn.apache.org/viewvc/cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/TestUtil.java?rev=1244145&r1=1244144&r2=1244145&view=diff ============================================================================== --- cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/TestUtil.java (original) +++ cxf/trunk/testutils/src/main/java/org/apache/cxf/testutil/common/TestUtil.java Tue Feb 14 18:23:02 2012 @@ -27,6 +27,7 @@ import java.net.URISyntaxException; import java.net.URL; import java.net.URLClassLoader; import java.util.Properties; +import java.util.Random; public final class TestUtil { @@ -38,6 +39,9 @@ public final class TestUtil { static { int pn = 9000; + if (Boolean.getBoolean("cxf.useRandomFirstPort")) { + pn += new Random().nextInt(500) * 100; + } while (portNum == -1) { try { //we'll hold a socket open and allocate ports up from that socket.