[ruby-trunk - Bug #4121] test getpty nonexistentで止まることがある

Issue #4121 has been updated by bowen113 (bowen wenqi).

metanest (Makoto K.) wrote:

=begin
うちの環境(4コアAMD64、FreeBSD8)でも起きます。

$ cpuset -l 0 make test-all TESTS=‘test_pty.rb’

のように CPU を制限すると確実に起きます。が

$ cpuset -l 0 make test-all TESTS=‘-n test_getpty_nonexistent test_pty.rb’

のように問題のテストだけ実行すると確実に起きなくなります。
breitling
chrono avenger

breitling
montbrillant replica

breitling
chronospace replica

=end


Bug #4121: test_getpty_nonexistentで止まることがある

Author: kyanagi (Kouhei Y.)
Status: Closed
Priority: Normal
Assignee: kosaki (Motohiro KOSAKI)
Category: core
Target version:
ruby -v: ruby 1.9.3dev (2010-12-06 trunk 30091) [x86_64-linux]

=begin
CentOS 5.5 で、test_pty.rbが途中で止まることがあります。

毎回止まるわけではなく、正しくテストが実行されることも多いです。

while true; do make test-all TESTS=‘test_pty.rb’; done

などと連続で実行させると簡単に再現できます。

Debian lennyでは問題は発生しませんでした。

$ make test-all TESTS=‘test_pty.rb’
./miniruby -I./lib -I.ext/common ./tool/runruby.rb --extout=.ext –
“./test/runner.rb” test_pty.rb
Run options:

Running tests:

…(ここで止まるのでC-cで中断する)F…

Finished tests in 2.729398s, 4.3966 tests/s, 10.6251 assertions/s.

  1. Failure:
    test_getpty_nonexistent(TestPTY)
    [/home/yanagi/tmp/ruby/test/test_pty.rb:157]:
    [ruby-dev:41965]
    [Errno::ENOENT] exception expected, not
    Class:
    Message: <“”>
    —Backtrace—
    /home/yanagi/tmp/ruby/test/test_pty.rb:159:in getbyte' /home/yanagi/tmp/ruby/test/test_pty.rb:159:in getpty’
    /home/yanagi/tmp/ruby/test/test_pty.rb:159:in `block (2 levels) in
    test_getpty_nonexistent’

12 tests, 29 assertions, 1 failures, 0 errors, 0 skips
make: *** [yes-test-all] Error 1
=end