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

Discussion in 'Ruby' started by Frank J. Lhota, Apr 16, 2009.

  1. 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?
     
    Frank J. Lhota, Apr 16, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    471
  2. Nicolas Lehuen
    Replies:
    3
    Views:
    723
    Nicolas Lehuen
    Jan 28, 2004
  3. Anthony Fairchild

    Compiling under cygwin - make test fails

    Anthony Fairchild, Jun 3, 2005, in forum: Ruby
    Replies:
    2
    Views:
    140
    Anthony Fairchild
    Jun 3, 2005
  4. D. Krmpotic
    Replies:
    4
    Views:
    237
    NAKAMURA, Hiroshi
    Aug 3, 2007
  5. Jayamurugan Jayakumar

    How to uninstall Ruby 1.9.1p0 in Red Hat Linux

    Jayamurugan Jayakumar, Apr 21, 2009, in forum: Ruby
    Replies:
    1
    Views:
    296
    Robert Klemme
    Apr 21, 2009
Loading...

Share This Page