[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
----8<----
C:\usr\ruby\lib\ruby\gems\1.8\gems\rake-0.5.4.2>cd c:
C:\usr\ruby\lib\ruby\gems\1.8\gems\rake-0.5.4.2

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

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

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

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

C:\usr\ruby\lib\ruby\gems\1.8\gems\rake-0.5.4.2>
----8<----

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