Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43D8E10B24 for ; Tue, 8 Oct 2013 20:02:41 +0000 (UTC) Received: (qmail 27907 invoked by uid 500); 8 Oct 2013 20:02:34 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 27228 invoked by uid 500); 8 Oct 2013 20:02:33 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 25848 invoked by uid 99); 8 Oct 2013 20:02:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 20:02:32 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.212.178 as permitted sender) Received: from [209.85.212.178] (HELO mail-wi0-f178.google.com) (209.85.212.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 20:02:25 +0000 Received: by mail-wi0-f178.google.com with SMTP id hn9so7262321wib.5 for ; Tue, 08 Oct 2013 13:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Amzl5YuYOdj69nX6FSXyWC2wVTY48mcTBiaMCeiQHgo=; b=EB7appaAvop0n8FT/4g8EhpOy157E9bSSbp2E9Pyp6mDLWf1NaSQ1KnAq4UujHkiBd uuRLZwsGCItH0R1MIEWKnuPvOQ99aYBLF8xYK4HIWtECHfaLn7gkQmZg2Npu9ztwD2d6 qSwJxQn4ljDWUYI/buBuvZwSre+IISBdmJEtarMkNRmaHsCM+RXJN71vuBNH/PxMjI0K 3ysPbmtlGERdNSfk68lo8ohJDZSw3t0uTiS2LxBUHkYHZ5SM4vz1VD/I1HHwu6R811J3 9aATjG6km5UoL+tz9puCr1palr2/lgWxKfz9uvBHzqYXvV5/URdpqlvcG3jMUk6DTyIz +aFg== MIME-Version: 1.0 X-Received: by 10.180.37.227 with SMTP id b3mr3236836wik.24.1381262525276; Tue, 08 Oct 2013 13:02:05 -0700 (PDT) Received: by 10.194.24.99 with HTTP; Tue, 8 Oct 2013 13:02:05 -0700 (PDT) In-Reply-To: <20131008161141.C458E23889E0@eris.apache.org> References: <20131008161141.C458E23889E0@eris.apache.org> Date: Tue, 8 Oct 2013 21:02:05 +0100 Message-ID: Subject: Re: svn commit: r1530336 - /commons/proper/jci/trunk/fam/src/test/java/org/apache/commons/jci/monitor/FilesystemAlterationMonitorTestCase.java From: sebb To: dev@commons.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 8 October 2013 17:11, wrote: > Author: ebourg > Date: Tue Oct 8 16:11:41 2013 > New Revision: 1530336 > > URL: http://svn.apache.org/r1530336 > Log: > Disabled an assertion in testDeleteFileDetection failing on Windows (this is not a regression, the same assertion fails with JCI 1.0) > > Modified: > commons/proper/jci/trunk/fam/src/test/java/org/apache/commons/jci/monitor/FilesystemAlterationMonitorTestCase.java > > Modified: commons/proper/jci/trunk/fam/src/test/java/org/apache/commons/jci/monitor/FilesystemAlterationMonitorTestCase.java > URL: http://svn.apache.org/viewvc/commons/proper/jci/trunk/fam/src/test/java/org/apache/commons/jci/monitor/FilesystemAlterationMonitorTestCase.java?rev=1530336&r1=1530335&r2=1530336&view=diff > ============================================================================== > --- commons/proper/jci/trunk/fam/src/test/java/org/apache/commons/jci/monitor/FilesystemAlterationMonitorTestCase.java (original) > +++ commons/proper/jci/trunk/fam/src/test/java/org/apache/commons/jci/monitor/FilesystemAlterationMonitorTestCase.java Tue Oct 8 16:11:41 2013 > @@ -228,7 +228,7 @@ public final class FilesystemAlterationM > listener.waitForCheck(); > > assertEquals("expecting 1 file created", 1, listener.getCreatedFiles().size()); > - assertEquals("expecting 0 directories changed", 0, listener.getChangedDirectories().size()); > + //assertEquals("expecting 0 directories changed", 0, listener.getChangedDirectories().size()); // todo investigate why this is failing on Windows It works OK for me on Windows. But in any case, I think it would be better to always check the condition. The changed directories should then be logged to get a better idea of what went wrong. Could then continue on Windows and fail elsewhere. > > file.delete(); > assertFalse("file should not exist", file.exists()); > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org