On Jan 6, 2011, at 8:49 PM, Luis Lavena wrote:

> C:\Users\Luis>gem test rubygems-test --backtrace
> ERROR:  While executing gem ... (NameError)
>    uninitialized constant Fcntl::F_SETFD
>        
> C:/Users/Luis/.gem/ruby/x86-mingw32/1.8/gems/rubygems-test-0.2.0/lib/open4-vendor.rb:20:in
> `popen4'
> 
<snip>

This is definitely not intended. I'm guessing its the vendored open4 that we're 
using to support 1.8 elsewhere, and probably just needs a special case in the 
procs we use to abstract the IO portion of the system. You can see in 
/lib/rubygems/commands/test_command.rb we case through a couple of scenarios to 
support 1.8, 1.9, JRuby, etc. I imagine we just need a case that basically 
says, "if 1.8 and on windows, use the 1.9 version", but I might be off on that. 
If not we can probably combine the procs I use to build out the reader into 
something cohesive.

> Above example doesn't pass the test. Tried cloning rubygems-test and
> running rake test there:
> 
> C:\Users\Luis\Projects\oss\rubygems-test>rake test
> (in C:/Users/Luis/Projects/oss/rubygems-test)
> C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p330-i386-mingw32/bin/ruby.exe -w
> -Ilib;bin;test;. -e 'require "rubygems"; require "test/unit"; require
> "test/test_execute.rb"' --
> ./test/helper.rb:57: warning: method redefined; discarding old setup
> Loaded suite -e
> Started
> 
> ----- This test is interactive -----
> 
> ...Successfully uninstalled test-gem-0.0.0
> ERROR:  Could not find gem test-gem (0.0.0)
> .Successfully uninstalled test-gem-0.0.0
> ERROR:  Couldn't find rakefile -- this gem cannot be tested. Aborting.
> Successfully uninstalled test-gem-0.0.0
> ...
> Finished in 2.424139 seconds.
> 
> 7 tests, 13 assertions, 0 failures, 0 errors
> 
> The ERROR is the part I'm not confident with :-P

That ERROR you see there is actually intended, it's testing the system itself, 
including the failure cases.

> I would like to know what is required from the Windows side (if you
> heard of problems beyond the ones I shown above).

There's a circular require issue (this is what I was talking about in that 
email) in 1.9 mingw that I haven't figured out yet, but I'll keep hacking on 
it, I need to learn more about windows ruby anyhow. :)

> I can spare some hours this weekend to hack some solutions if required.

That would be *awesome*. Thank you!

-Erik
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to