diff options
Diffstat (limited to 'test/ruby/test_signal.rb')
-rw-r--r-- | test/ruby/test_signal.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index f58eea5ddb..63d6d9d9f0 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -251,10 +251,10 @@ EOS STDOUT.flush exit 0 end - sleep + Process.kill("INT", $$) + sleep 1 # wait signal deliver EOS - sleep 0.1 - Process.kill("INT", child.pid) + signame = Marshal.load(child) assert_equal(signame, "INT") end |