Project

General

Profile

Backport #5850

Backport r34129, r34250, r34252 and r34253 ( Failure test/ruby/test_io.rb )

Added by ayumin (Ayumu AIZAWA) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-dev:45098]

Description

=begin
r34219で test/ruby/test_io.rb が1件失敗、1件エラーになります。
エラーの方は-j で実行すると最初は失敗してそのあと成功します。

0:ruby ➔ make test-all TESTS=test/ruby/test_io.rb
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" test/ruby/test_io.rb
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems"

# Running tests:

.F.............E..................................................................................................

Finished tests in 4.242426s, 26.8714 tests/s, 134.3571 assertions/s.

1) Failure:
test_autoclose(TestIO) [/Users/ayumin/github/ruby/test/ruby/test_io.rb:1444]:
Errno::EBADF expected but nothing was raised.

2) Error:
test_copy_stream(TestIO):
Errno::EBADF: Bad file descriptor
/Users/ayumin/github/ruby/test/ruby/test_io.rb:32:in close'
/Users/ayumin/github/ruby/test/ruby/test_io.rb:32:in
rescue in block in pipe'
/Users/ayumin/github/ruby/test/ruby/test_io.rb:29:in `block in pipe'

114 tests, 570 assertions, 1 failures, 1 errors, 0 skips

ruby -v: ruby 2.0.0dev (2012-01-06 trunk 34219) [x86_64-darwin10.8.0]
make: *** [yes-test-all] Error 2
0:ruby ➔ make test-all TESTS='-j 2 test/ruby/test_io.rb'
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -j 2 test/ruby/test_io.rb
Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems" -j 2

# Running tests:

.F.............E..................................................................................................
Retrying...

.F................................................................................................................

Finished tests in 10.072929s, 11.3175 tests/s, 56.5873 assertions/s.

1) Failure:
test_autoclose(TestIO) [/Users/ayumin/github/ruby/test/ruby/test_io.rb:1444]:
Errno::EBADF expected but nothing was raised.

114 tests, 570 assertions, 1 failures, 0 errors, 0 skips

ruby -v: ruby 2.0.0dev (2012-01-06 trunk 34219) [x86_64-darwin10.8.0]
make: *** [yes-test-all] Error 1

=end


Related issues

Related to Ruby master - Feature #2250: IO::for_fd() objects' finalization dangerously closes underlying fdsRejectedEregon (Benoit Daloze)Actions

Also available in: Atom PDF