Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 31637 invoked from network); 30 Jun 2006 13:35:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jun 2006 13:35:26 -0000 Received: (qmail 59984 invoked by uid 500); 30 Jun 2006 13:35:22 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 59937 invoked by uid 500); 30 Jun 2006 13:35:22 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 59926 invoked by uid 99); 30 Jun 2006 13:35:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 06:35:21 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 82.138.226.220 is neither permitted nor denied by domain of t.p.ellison@gmail.com) Received: from [82.138.226.220] (HELO dublin.purplecloud.com) (82.138.226.220) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 06:35:20 -0700 Received: (qmail 27493 invoked from network); 30 Jun 2006 14:33:25 +0100 Received: from unknown (HELO ?192.168.0.2?) (85.133.120.161) by smtp-dublin.purplecloud.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 30 Jun 2006 14:33:25 +0100 Message-ID: <44A52881.9020200@gmail.com> Date: Fri, 30 Jun 2006 14:34:57 +0100 From: Tim Ellison User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [classlib] tests.api.java.io.FileTest failures on Windows XP References: <010b01c6933c$1edeb330$6501a8c0@OFFICEDESKTOP> <44960FAA.6040609@gmail.com> <449658CD.9010803@gmail.com> <44A4C98D.9040305@gmail.com> In-Reply-To: <44A4C98D.9040305@gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Paulex Yang wrote: > Tim, > > Are you looking at this FileTest now? I have not had time, so if you can fix them then please go ahead. > I've looked over this test, and > basically I think it's the test itself can be improved. If 8.3 filename > is disabled, the test_getCanonicalPath and test_getCanonicalFile fails > on both RI and Harmony. Look inside the tests, it creates a file > "longfilename.tst" and "longfi~`.tst", and try to assert these two file > returns same canonical path. My suggestions on this test are: > > 1. About platform issue, these two tests are windows specific, and there > are quite a few other test cases in FileTest written like "if(onWindows) > blabla", they should be separated to another platform dependent test > cases, according to our test convention proposal > > 2. About long file name issue, I think these 8.3 file name tests are > still valuable, I suggest to check the workstation's status at first, > and if it supports 8.3 filename, go on the tests, otherwise just skip > over this block, the status can be easily get by codes below: (suppose > we got a resource test file named as "longfilename.res") > > private boolean support8Dot3Filename(){ > return new File(basedir+"longfi~1.res").exists(); > } > > your comments? Just wondering if that is something we should be able to answer in the general case from the IFileSystem ? I guess no impl code takes notice of that support, in which case what is the test testing? Regards, Tim > Tim Ellison wrote: >> Can you stick it into a JIRA? I may have time to look into it. >> >> Regards, >> Tim >> >> Richard Liang wrote: >> >>> Hello Nathan, >>> >>> Yes. When I disable 8.3 filename support on my WinXP, I get the same >>> error. >>> IMHO, our test case cannot assume whether the 8.3 filename is disabled >>> or not. >>> >>> Richard. >>> >>> Nathan Beyer wrote: >>> >>>> I'm running them through the Ant scripts. >>>> >>>> ant -f make/build.xml test >>>> >>>> I do have the 8.3 filename support disabled on my laptop, so I'm >>>> wondering >>>> if that's it. >>>> >>>> -Nathan >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: Richard Liang [mailto:richard.liangyx@gmail.com] >>>>> Sent: Sunday, June 18, 2006 12:14 AM >>>>> To: harmony-dev@incubator.apache.org >>>>> Subject: Re: [classlib] tests.api.java.io.FileTest failures on >>>>> Windows XP >>>>> >>>>> Hello Nathan , >>>>> >>>>> The test just pass on my eclipse. How do you execute this test? >>>>> >>>>> Nathan Beyer wrote: >>>>> >>>>>> Does anyone else get the following failures when running the classlib >>>>>> >>>>> test >>>>> >>>>>> suite on Windows XP? I've been getting these for months and just >>>>>> >>>>> ignoring >>>>> >>>>>> them while I worked on other stuff, because they always happened. >>>>>> Before >>>>>> >>>>> I >>>>> >>>>>> start digging into I wanted to see if anyone else is getting these >>>>>> >>>>> reports. >>>>> >>>>>> test_getCanonicalFileFailureTest 5: Incorrect File Returned: >>>>>> C:\dev\harmony\classlib\modules\luni\bin\test\long-JDK2- >>>>>> >>>>> 3\longdi~1\longfi~1. >>>>> >>>>>> tst >>>>>> >>>>>> junit.framework.AssertionFailedError: Test 5: Incorrect File >>>>>> Returned: >>>>>> C:\dev\harmony\classlib\modules\luni\bin\test\long-JDK2- >>>>>> >>>>> 3\longdi~1\longfi~1. >>>>> >>>>>> tst at >>>>>> >>>>> tests.api.java.io.FileTest.test_getCanonicalFile(FileTest.java:783) >>>>> >>>>>> at >>>>>> >>>>>> >>>>> java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205)0.171 >>>>> >>>>> >>>>> >>>>>> test_getCanonicalPathFailureTest 6: Incorrect Path Returned. >>>>>> (C:\dev\harmony\classlib\modules\luni\bin\test\long-JDK2-3\longfi~1.tst >>>>>> >>>>>> insteadof >>>>>> C:\dev\harmony\classlib\modules\luni\bin\test\long-JDK2- >>>>>> >>>>> 3\longfilenameJDK2-3 >>>>> >>>>>> .tst) >>>>>> >>>>>> junit.framework.AssertionFailedError: Test 6: Incorrect Path >>>>>> Returned. >>>>>> (C:\dev\harmony\classlib\modules\luni\bin\test\long-JDK2-3\longfi~1.tst >>>>>> >>>>>> insteadof >>>>>> C:\dev\harmony\classlib\modules\luni\bin\test\long-JDK2- >>>>>> >>>>> 3\longfilenameJDK2-3 >>>>> >>>>>> .tst) at >>>>>> >>>>> tests.api.java.io.FileTest.test_getCanonicalPath(FileTest.java:867) >>>>> >>>>>> at >>>>>> java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:205) >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> -- >>>>> Richard Liang >>>>> China Software Development Lab, IBM >>>>> >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> Terms of use : http://incubator.apache.org/harmony/mailing.html >>>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org >>>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org >>>>> >>>> --------------------------------------------------------------------- >>>> Terms of use : http://incubator.apache.org/harmony/mailing.html >>>> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org >>>> For additional commands, e-mail: harmony-dev-help@incubator.apache.org >>>> >>>> >>>> >> >> > > -- Tim Ellison (t.p.ellison@gmail.com) IBM Java technology centre, UK. --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org