* bootstraptest/test_io.rb: block write may block for long time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
09d18a1a8f
commit
300d60a8e4
@ -1,3 +1,7 @@
|
|||||||
|
Wed Jul 22 01:20:54 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* bootstraptest/test_io.rb: block write may block for long time.
|
||||||
|
|
||||||
Wed Jul 22 00:34:39 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
|
Wed Jul 22 00:34:39 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
|
||||||
|
|
||||||
* lib/irb.rb, lib/irb/init.rb, lib/irb/ext/save-history.rb: add
|
* lib/irb.rb, lib/irb/init.rb, lib/irb/ext/save-history.rb: add
|
||||||
@ -14,7 +18,6 @@ Tue Jul 21 21:37:19 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
|
|||||||
|
|
||||||
* lib/irb/cmd/help.rb: fixed irb's "help" command. [ruby-core:22310].
|
* lib/irb/cmd/help.rb: fixed irb's "help" command. [ruby-core:22310].
|
||||||
|
|
||||||
Tue Jul 21 20:41:20 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
|
|
||||||
|
|
||||||
* lib/tracer.rb: no show lines unkonwn line number. [ruby-core:22096],
|
* lib/tracer.rb: no show lines unkonwn line number. [ruby-core:22096],
|
||||||
no trace display c-call and c-return as default.
|
no trace display c-call and c-return as default.
|
||||||
|
@ -11,19 +11,22 @@ assert_finish 5, %q{
|
|||||||
assert_finish 10, %q{
|
assert_finish 10, %q{
|
||||||
begin
|
begin
|
||||||
require "io/nonblock"
|
require "io/nonblock"
|
||||||
r, w = IO.pipe
|
require "timeout"
|
||||||
w.nonblock = true
|
timeout(3) do
|
||||||
w.write_nonblock("a" * 100000)
|
r, w = IO.pipe
|
||||||
w.nonblock = false
|
w.nonblock = true
|
||||||
t1 = Thread.new { w.write("b" * 4096) }
|
w.write_nonblock("a" * 100000)
|
||||||
t2 = Thread.new { w.write("c" * 4096) }
|
w.nonblock = false
|
||||||
sleep 0.5
|
t1 = Thread.new { w.write("b" * 4096) }
|
||||||
r.sysread(4096).length
|
t2 = Thread.new { w.write("c" * 4096) }
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
r.sysread(4096).length
|
r.sysread(4096).length
|
||||||
t1.join
|
sleep 0.5
|
||||||
t2.join
|
r.sysread(4096).length
|
||||||
rescue LoadError
|
t1.join
|
||||||
|
t2.join
|
||||||
|
end
|
||||||
|
rescue LoadError, TimeoutError
|
||||||
end
|
end
|
||||||
}, '[ruby-dev:32566]'
|
}, '[ruby-dev:32566]'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user