[Groonga-commit] ranguba/rroonga at d60154b [master] test: use SIGINT for portability

Back to archive index
Kouhei Sutou null+****@clear*****
Sat May 11 07:21:05 JST 2019


Kouhei Sutou	2019-05-11 07:21:05 +0900 (Sat, 11 May 2019)

  Revision: d60154b2b3992679cac4146e42b0c931fb0fecba
  https://github.com/ranguba/rroonga/commit/d60154b2b3992679cac4146e42b0c931fb0fecba

  Message:
    test: use SIGINT for portability

  Modified files:
    test/test-remote.rb

  Modified: test/test-remote.rb (+4 -1)
===================================================================
--- test/test-remote.rb    2019-05-11 07:15:52 +0900 (d009c0a5)
+++ test/test-remote.rb    2019-05-11 07:21:05 +0900 (de094685)
@@ -40,7 +40,10 @@ class RemoteTest < Test::Unit::TestCase
 
   teardown
   def teardown_remote_connection
-    Process.kill(:TERM, @process_id) if @process_id
+    if @process_id
+      Process.kill(:INT, @process_id)
+      Process.waitpid(@process_id)
+    end
   end
 
   def test_send
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190511/29dd9434/attachment.html>


More information about the Groonga-commit mailing list
Back to archive index