Project

General

Profile

Actions

Bug #4121

closed

test_getpty_nonexistentで止まることがある

Added by kyanagi (Kouhei Yanagita) over 13 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-12-06 trunk 30091) [x86_64-linux]
Backport:
[ruby-dev:42686]

Description

=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


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #4157: test_pty で、たまに出る FailureClosedmetanest (Makoto Kishimoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0