Kouhei Sutou 2019-05-11 06:48:14 +0900 (Sat, 11 May 2019) Revision: 041370749acadb03d9ead21fd4fb21e36f0fcb8d https://github.com/ranguba/rroonga/commit/041370749acadb03d9ead21fd4fb21e36f0fcb8d Message: test: use spawn for portability Modified files: test/test-remote.rb Modified: test/test-remote.rb (+5 -6) =================================================================== --- test/test-remote.rb 2019-05-11 06:47:53 +0900 (f1b6636d) +++ test/test-remote.rb 2019-05-11 06:48:14 +0900 (0305badf) @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 Kouhei Sutou <kou****@clear*****> +# Copyright (C) 2009-2019 Kouhei Sutou <kou****@clear*****> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -26,11 +26,10 @@ class RemoteTest < Test::Unit::TestCase @host = "127.0.0.1" @port = 12345 @remote_database_path = @tmp_dir + "remote-database" - @process_id = Process.fork do - exec(groonga, - "-i", @host, - "-p", @port.to_s, - "-s", "-n", @remote_database_path.to_s) + @process_id = spawn(groonga, + "-i", @host, + "-p", @port.to_s, + "-s", "-n", @remote_database_path.to_s) end sleep(1) end -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190511/4eb6e2a6/attachment-0001.html>