[Rake-devel] test_each_dir_parent failure on Win32

Lionel Thiry lthiry at skynet.be
Fri May 6 11:51:16 EDT 2005

Berger, Daniel a écrit :
> Hi all,
> This test failure appears to be separate from the shell issue:  
> 5) Failure:
> test_each_dir_parent(TestRake) [./test/test_rake.rb:11]:
> <["c:/a/b", "c:/a", "c:"]> expected but was
> <["c:/a/b", "c:/a", "c:/"]>.
> I'm not familiar enough with "alldirs" to know whether the third element
> should be "c:" or "c:/".  Thoughts?
> Regards,
> Dan

Here are some differences in a dos box
C:\usr\ruby\lib\ruby\gems\1.8\gems\rake->cd c:

C:\usr\ruby\lib\ruby\gems\1.8\gems\rake->cd c:/

C:\usr\ruby\lib\ruby\gems\1.8\gems\rake->cd c:\

C:\>cd usr/ruby/lib/ruby/gems/1.8/gems/rake-

C:\usr>cd ruby\lib\ruby\gems\1.8\gems\rake-


As you can see, it behaves strangely if I use "/" instead of "\".

I remember scons has to make some string manipulation with drive letter when 
working on windows, because of the inconsistent behavior of windows.

Lionel Thiry

Personal website: http://users.skynet.be/lthiry/

More information about the Rake-devel mailing list