aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_signal.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-11 14:03:40 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-11 14:03:40 +0000
commit38d3b013b7733d9ccd66c011d74c00b35bb704c4 (patch)
tree89758941ee1047425a466bd49f1048b66949b53c /test/ruby/test_signal.rb
parent2f56c64b4f4686e7a5adac3dc486319694ad2828 (diff)
downloadruby-38d3b013b7733d9ccd66c011d74c00b35bb704c4.tar.gz
* thread.c (rb_threadptr_execute_interrupts_common): th->errinfo is
not Fixnum, but exception object. This causes test_signal_requiring of test/ruby/test_signal.rb fail if the sub process is killed on waiting IO in lex_io_gets in require itself, not sleep. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_signal.rb')
-rw-r--r--test/ruby/test_signal.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb
index 0e3af06d7b..6b97ae78bd 100644
--- a/test/ruby/test_signal.rb
+++ b/test/ruby/test_signal.rb
@@ -212,7 +212,7 @@ th = Thread.new do
STDOUT.flush
end
end
-Thread.pass while th.running?
+Thread.pass until th.stop? # this may stop inside lex_io_gets
Process.kill(:INT, $$)
th.join
EOS