* bootstraptest/test_io.rb (megacontent-copy_stream): get rid of
deadlock. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
62d7a30a76
commit
a6242670f3
@ -1,3 +1,8 @@
|
|||||||
|
Wed May 5 11:43:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* bootstraptest/test_io.rb (megacontent-copy_stream): get rid of
|
||||||
|
deadlock.
|
||||||
|
|
||||||
Wed May 5 07:27:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed May 5 07:27:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* gc.c (rb_mark_method_entry): renamed.
|
* gc.c (rb_mark_method_entry): renamed.
|
||||||
|
@ -78,7 +78,7 @@ assert_normal_exit %q{
|
|||||||
ARGF.set_encoding "foo"
|
ARGF.set_encoding "foo"
|
||||||
}
|
}
|
||||||
|
|
||||||
1.times do
|
10.times do
|
||||||
assert_normal_exit %q{
|
assert_normal_exit %q{
|
||||||
at_exit { p :foo }
|
at_exit { p :foo }
|
||||||
|
|
||||||
@ -90,11 +90,13 @@ assert_normal_exit %q{
|
|||||||
r1, w1 = IO.pipe
|
r1, w1 = IO.pipe
|
||||||
r2, w2 = IO.pipe
|
r2, w2 = IO.pipe
|
||||||
t1 = Thread.new { w1 << megacontent; w1.close }
|
t1 = Thread.new { w1 << megacontent; w1.close }
|
||||||
t2 = Thread.new { r2.read }
|
t2 = Thread.new { r2.read; r2.close }
|
||||||
IO.copy_stream(r1, w2) rescue nil
|
IO.copy_stream(r1, w2) rescue nil
|
||||||
r2.close; w2.close
|
w2.close
|
||||||
r1.close; w1.close
|
r1.close
|
||||||
}, '', ["INT"] or break
|
t1.join
|
||||||
|
t2.join
|
||||||
|
}, 'megacontent-copy_stream', ["INT"], :timeout => 10 or break
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_normal_exit %q{
|
assert_normal_exit %q{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user