Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Cygwin build of Ruby 1.9.1p0 fails test_io.rb test 7

Reply
Thread Tools

Cygwin build of Ruby 1.9.1p0 fails test_io.rb test 7

 
 
Frank J. Lhota
Guest
Posts: n/a
 
      04-16-2009
I downloaded the 1.9.1p0 Ruby source code and built it using the
Cygwin tools. I ran the bootstrap test on this build. The Cygwin build
passed every test outside of the file bootstrap/test_io.rb. This build
hung on the second test in test_io.rb. This is not terribly
surprising, given that others have reported errors with this test on
other platforms. But after taking out test 2, I found that the Cygwin
build hung on test 7 in the same file:

50.times do
assert_normal_exit %q{
at_exit { p :foo }

megacontent = "abc" * 12345678
#File.open("megasrc", "w") {|f| f << megacontent }

Thread.new { sleep rand*0.2; Process.kill(:INT, $$) }

r1, w1 = IO.pipe
r2, w2 = IO.pipe
t1 = Thread.new { w1 << megacontent; w1.close }
t2 = Thread.new { r2.read }
IO.copy_stream(r1, w2) rescue nil
r2.close; w2.close
r1.close; w1.close
}, '', ["INT"] or break
end

Has anyone had any problems with this test? Is there a patch that
would allow Ruby 1.9.1 on Cygwin to pass test 2 and/or test 7 in
test_io.rb?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling under cygwin - make test fails Anthony Fairchild Ruby 2 06-03-2005 12:40 AM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM
Python 2.3.3 : Win32 build vs Cygwin build performance ? Nicolas Lehuen Python 3 01-28-2004 07:30 AM
confirm unsubscribe from cygwin@cygwin.com cygwin-help@cygwin.com Python 0 09-04-2003 06:34 PM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments