8000 test/ruby/test_io.rb (test_recycled_fd_close): remove hacks · github/ruby@8f23f69 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f23f69

Browse files
author
normal
committed
test/ruby/test_io.rb (test_recycled_fd_close): remove hacks
I think I finally fixed the underlying bug in r65937 ("io.c (fptr_finalize_flush): close race leading to EBADF") I've run this test over 100000 times on a multicore system, now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 26771ca commit 8f23f69

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/ruby/test_io.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3774,14 +3774,6 @@ def test_recycled_fd_close
37743774
th = Thread.new { r.read(1) }
37753775
w.write(dot)
37763776

3777-
# XXX not sure why this is needed on Linux, otherwise
3778-
# the "good" reader thread doesn't always join properly
3779-
# because the reader never sees the first write
3780-
if RUBY_PLATFORM =~ /linux/
3781-
# assert_equal can fail if this is another char...
3782-
w.write(dot)
3783-
end
3784-
37853777
assert_same th, th.join(15), '"good" reader timeout'
37863778
assert_equal(dot, th.value)
37873779
end
@@ -3800,9 +3792,6 @@ def test_recycled_fd_close
38003792
end
38013793
Thread.pass until th.stop?
38023794

3803-
# XXX not sure why, this reduces Linux CI failures
3804-
assert_nil th.join(0.001)
3805-
38063795
r.close
38073796
assert_same th, th.join(30), '"bad" reader timeout'
38083797
assert_match(/stream closed/, th.value.message)

0 commit comments

Comments
 (0)
0