Re: move-test fails on Windows7

2010-04-26 Thread Stefan Bodewig
On 2010-04-26, Mark Salter wrote: > Perhaps the result of running the specific test on xp would have been > better information to share. move-test (see subject ;-) To be more concrete: test-move-caseonly in src/tests/antunit/taskdefs/move-test.xml in Ant's code base started failing for me when

Re: move-test fails on Windows7

2010-04-26 Thread Mark Salter
On 26/04/2010 14:26, Stefan Bodewig wrote: > "abc" has to exist, does it in your testcase? No it didn't exists, I simply coded:- if (new File("c:\\abc.txt").equals(new File("c:\\ABC.txt"))){ System.out.println("Equals"); } else { System.out.println("NOT Equ

Re: move-test fails on Windows7

2010-04-26 Thread Stefan Bodewig
On 2010-04-26, Mark Salter wrote: > On 26/04/2010 13:41, Matt Benson wrote: >> Later today I can verify what was returned on XP for new >> File("abc").equals(new File("ABC")) . > Returns true on XP here. "abc" has to exist, does it in your testcase? If so I wonder how the test has ever passed

Re: move-test fails on Windows7

2010-04-26 Thread Stefan Bodewig
On 2010-04-26, Matt Benson wrote: > I'm not sure. We probably need to do a little more testing but I'm on > OSX right now and don't have any Win7 system at my disposal. Later > today I can verify what was returned on XP for new > File("abc").equals(new File("ABC")) . I've attached a patch to B

Re: move-test fails on Windows7

2010-04-26 Thread Mark Salter
On 26/04/2010 13:41, Matt Benson wrote: > Later today I can verify what was returned on XP for new > File("abc").equals(new File("ABC")) . Returns true on XP here. java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode)

Re: move-test fails on Windows7

2010-04-26 Thread Matt Benson
I'm not sure. We probably need to do a little more testing but I'm on OSX right now and don't have any Win7 system at my disposal. Later today I can verify what was returned on XP for new File("abc").equals(new File("ABC")) . On 4/25/10, Stefan Bodewig wrote: > On 2010-04-23, Matt Benson wrote

Re: move-test fails on Windows7

2010-04-24 Thread Stefan Bodewig
On 2010-04-23, Matt Benson wrote: > On Apr 23, 2010, at 3:08 AM, Stefan Bodewig wrote: >> The problem is this code in Move#renameFile >> sourceFile = getFileUtils().normalize >> (sourceFile.getAbsolutePath()).getCanonicalFile(); >> destFile = getFileUtils().normalize >>

Re: move-test fails on Windows7

2010-04-23 Thread Matt Benson
On Apr 23, 2010, at 3:08 AM, Stefan Bodewig wrote: On 2010-04-22, Stefan Bodewig wrote: On 2010-04-21, Steve Loughran wrote: So perhaps the check for windows (and special handling) is failing I'll try to fix it. There is no Windows specific code, I've reopened bug 41948 because its

Re: move-test fails on Windows7

2010-04-23 Thread Stefan Bodewig
On 2010-04-22, Stefan Bodewig wrote: > On 2010-04-21, Steve Loughran wrote: >> So perhaps the check for windows (and special handling) is failing > I'll try to fix it. There is no Windows specific code, I've reopened bug 41948 because its fix doesn't seem to work reliably on Windows7 anymore.

Re: move-test fails on Windows7

2010-04-22 Thread Stefan Bodewig
On 2010-04-21, Steve Loughran wrote: > Stefan Bodewig wrote: >> my work machine has been "upgraded" from XP to Win7 and now I get >> an error in test-move-caseonly: > I'd have expected that rename to fail on any of the windows platforms, It used to pass when I was running XP. > So perhaps the

Re: move-test fails on Windows7

2010-04-21 Thread Steve Loughran
Stefan Bodewig wrote: Hi, my work machine has been "upgraded" from XP to Win7 and now I get an error in test-move-caseonly: abc was not renamed aBc at line 31 , column 80 This is true for trunk as well as Ant 1.8.0. Does anybody else see this or is it something specific to my (still incomp