mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_thread.rb (test_async_interrupt_blocking): bugfix
about defared check git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64f634f1de
commit
afa3ce2518
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Dec 5 04:04:02 2012 Masaya Tarui <tarui@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/ruby/test_thread.rb (test_async_interrupt_blocking): bugfix
|
||||||
|
about defared check
|
||||||
|
|
||||||
Wed Dec 5 03:35:37 2012 Masaya Tarui <tarui@ruby-lang.org>
|
Wed Dec 5 03:35:37 2012 Masaya Tarui <tarui@ruby-lang.org>
|
||||||
|
|
||||||
* vm_core.h (RUBY_VM_CHECK_INTS_BLOCKING): check async queue everytime.
|
* vm_core.h (RUBY_VM_CHECK_INTS_BLOCKING): check async queue everytime.
|
||||||
|
|
|
@ -565,7 +565,7 @@ class TestThread < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_async_interrupt_blocking
|
def test_async_interrupt_blocking
|
||||||
r=:ok
|
r=:ng
|
||||||
e=Class.new(Exception)
|
e=Class.new(Exception)
|
||||||
th_s = Thread.current
|
th_s = Thread.current
|
||||||
begin
|
begin
|
||||||
|
@ -573,6 +573,7 @@ class TestThread < Test::Unit::TestCase
|
||||||
Thread.async_interrupt_timing(Object => :on_blocking){
|
Thread.async_interrupt_timing(Object => :on_blocking){
|
||||||
begin
|
begin
|
||||||
Thread.current.raise RuntimeError
|
Thread.current.raise RuntimeError
|
||||||
|
r=:ok
|
||||||
sleep
|
sleep
|
||||||
ensure
|
ensure
|
||||||
th_s.raise e
|
th_s.raise e
|
||||||
|
|
Loading…
Add table
Reference in a new issue