diff --git a/ChangeLog b/ChangeLog index 8c71e50718..851269e35e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 27 11:23:20 2007 Koichi Sasada + + * test_beginendblock.rb: add loop to wait signal. + [ruby-dev:32332] + Tue Nov 27 11:14:57 2007 Tanaka Akira * include/ruby/encoding.h, encoding.c, re.c, string.c, parse.y: diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb index e5f21286a0..3e51adff38 100644 --- a/test/ruby/test_beginendblock.rb +++ b/test/ruby/test_beginendblock.rb @@ -73,8 +73,10 @@ EOW def test_should_propagate_signaled ruby = EnvUtil.rubybin - out = IO.popen([ruby, '-e', 'STDERR.reopen(STDOUT)', - '-e', 'at_exit{Process.kill(:INT, $$)}']) {|f| + out = IO.popen( + [ruby, + '-e', 'STDERR.reopen(STDOUT)', + '-e', 'at_exit{Process.kill(:INT, $$); loop{}}']) {|f| f.read } assert_match /Interrupt$/, out