Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 65818 invoked from network); 7 Dec 2007 11:44:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2007 11:44:08 -0000 Received: (qmail 32662 invoked by uid 500); 7 Dec 2007 11:43:56 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 32604 invoked by uid 500); 7 Dec 2007 11:43:56 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 32593 invoked by uid 99); 7 Dec 2007 11:43:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2007 03:43:56 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xavier.hanin@gmail.com designates 209.85.146.178 as permitted sender) Received: from [209.85.146.178] (HELO wa-out-1112.google.com) (209.85.146.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2007 11:43:34 +0000 Received: by wa-out-1112.google.com with SMTP id k22so1365813waf for ; Fri, 07 Dec 2007 03:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=B5FvGmygU1AN9ZEJGC6JISKDVZJfWE5CXC3gK62k5BA=; b=U5u15Q7r3CC057RDQE2hTDciW5LHEOeikLIDs9HNyOMYrMw8ikYWmMVkqQvepqlwrTHPxgSpSAG5tLfrgnsSf0ijsWYo9yeK9FxPUCpAXHkaE0Lp11+cOwsnOuWDQihU1LtSmDL3wRt/MxYBDTpKrIh4UbbPIHPFL8izvYRABz0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eJ8Aw9sbt/4Hdm5V1sxZdidxsYpUd0le8EMqLNN3M/JFMbEghctxIucy3sIBX18uQz2v4MoRolRMe0ZCSUeTDh1BMf8GbCbt4nyPWxYKqXqGJThHOoNRLz63YmWoIbDkdMQMKyJe2Xwn+cfBHxwWmStaf2XdJA/dYCL5PjboJhA= Received: by 10.114.111.1 with SMTP id j1mr2862223wac.1197027816273; Fri, 07 Dec 2007 03:43:36 -0800 (PST) Received: by 10.114.122.18 with HTTP; Fri, 7 Dec 2007 03:43:36 -0800 (PST) Message-ID: <635a05060712070343g1e00e392o3b296f275c66d50a@mail.gmail.com> Date: Fri, 7 Dec 2007 12:43:36 +0100 From: "Xavier Hanin" To: "Ant Developers List" Subject: Re: ArtifactLockStrategyTest.testConcurrentResolve failure In-Reply-To: <015301c838b1$5a5d9b30$0920a8c0@isabelteam.be> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14323_25432251.1197027816265" References: <015301c838b1$5a5d9b30$0920a8c0@isabelteam.be> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_14323_25432251.1197027816265 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Dec 7, 2007 10:12 AM, Gilles Scokart wrote: > > > > > I got this when running ant test: > > > > name="testConcurrentResolve" time="16.312"> > > junit.framework > > .AssertionFailedError: expected:<10> but was:<9> > > at > org.apache.ivy.plugins.lock.ArtifactLockStrategyTest.testConcurrentResolve > (ArtifactLockStrategyTest.java:72) > > > > > > The second time, I got this : > > name="testConcurrentResolve" time="10.344"> > > junit.framework > > .AssertionFailedError: expected:<10> but was:<2> > > at > org.apache.ivy.plugins.lock.ArtifactLockStrategyTest.testConcurrentResolve > (ArtifactLockStrategyTest.java:72) > > > > > > > > > > Is it only me? > > > > And of curse, I can't reproduce it in eclipse. > > > > I'm using an ibm jvm 1.5 in both command line and in eclipse. It maybe due to your environment, including your filesystem, since locking rely on the filesystem. I've tested with sun jvm 1.5 and 1.6, on windows Vista, windows XP and linux. It may also simply be due to a slowness of your box, try to increase the join time at the end of the test (use 60000 instead of 10000) for instance), and see if it works. To get more details on what is happenning you can set debugging to true on the lock strategy in the test: private CacheManager newCacheManager(IvySettings settings) { CacheManager cacheManager = new CacheManager(settings, new File("build/test/cache")); cacheManager.setLockStrategy(new ArtifactLockStrategy(*true*)); return cacheManager; } Xavier > > > > > > > Gilles > > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://ant.apache.org/ivy/ http://www.xoocode.org/ ------=_Part_14323_25432251.1197027816265--