Hiroshi SHIBATA
c58759f494
Removed to load jit_support.rb
...
It's removed at 4445b9e2a2
2023-03-14 12:51:58 +09:00
Takashi Kokubun
4445b9e2a2
Remove unused methods from JITSupport
2023-03-11 20:56:29 -08:00
Takashi Kokubun
23ec248e48
s/mjit/rjit/
2023-03-06 23:44:01 -08:00
Hiroshi SHIBATA
236678b823
[ruby/open3] Use omit instead of skip for test-unit
...
https://github.com/ruby/open3/commit/f6ca124b56
2022-01-12 10:52:09 +09:00
Charles Oliver Nutter
080169147e
[ruby/open3] Use RbConfig's 'host_os'
...
RUBY_PLATFORM on JRuby is always 'java' so it does not indicate
the host OS.
https://github.com/ruby/open3/commit/d2308040e6
2021-12-09 19:28:54 +09:00
Charles Oliver Nutter
34ebd13923
[ruby/open3] Only use JITSupport on CRuby
...
Fixes #2
https://github.com/ruby/open3/commit/6b7ede69e8
2021-12-09 19:28:54 +09:00
Jean Boussier
adbdf11f94
[open3] only close streams if a block is passed
...
Ref: 5429deb075
The previous change totally borke `popen2e` in this usage:
```ruby
require 'open3'
stdin, stdout, process = Open3.popen2e("cat")
puts stdout.read
```
2020-06-18 10:00:20 -07:00
Hiroshi SHIBATA
f9a2440866
Restore support library for only test files.
2019-07-09 21:04:07 +09:00
Hiroshi SHIBATA
7f3bc3529b
Adjust jit_support file path.
2019-07-02 09:56:17 +09:00
Nobuyoshi Nakada
409b0ec4c3
Suppress unused variable warnings
2019-06-30 11:45:37 +09:00
Nobuyoshi Nakada
45ba027d08
Removed unused variables
2019-06-30 08:45:01 +09:00
akr
608310d6ff
use :chdir option to avoid fd 3 to work with Windows.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-13 08:53:15 +00:00
mame
90fc1ef779
test/test_open3.rb: skip a fd redirection test on windows
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-12 11:24:15 +00:00
akr
c8cb0565a1
open3.rb don't use keyword splat (**).
...
revert r43582, r49173 and r49177.
open3 arguments uses spawn-like keyword arguments.
Both symbol and integer keys are used.
```
Open3.capture2(*command, :in => IO::NULL, 3 => IO::NULL)
``
This style cannot be supported with keyword splat (**) since Ruby 2.6.
Because Ruby 2.6 prohibits symbol/non-symbol key hash separation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-12 06:48:46 +00:00
kazu
c66303cdd0
Remove needless closed?
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-06-17 15:42:35 +00:00
k0kubun
d025f64a9f
test_open3.rb: let test_popen2 work with --jit
...
test/lib/jit_support.rb: add .remove_mjit_logs to normalize stderr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-04-28 09:22:07 +00:00
akr
3d9453994c
lib/open3.rb: accept IO-like object for :stdin_data argument.
...
Open3.capture3, Open3.capture2, Open3.capture2e accepts
IO-like object for :stdin_data argument.
[ruby-core:80936] [Feature #13527 ] proposed by janko.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-21 07:00:58 +00:00
akr
1ec544695f
* lib/open3.rb: Specify frozen_string_literal: true.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-11-14 07:43:23 +00:00
akr
45913acc68
Add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-08 15:38:13 +00:00
usa
934253416e
* test/test_open3.rb (TestOpen3#test_numeric_file_descriptors): passing FDs
...
bigger than 2 is not supported on Windows.
fixed test failure introcuded at r49173.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-08 06:26:11 +00:00
akr
1ade9cad02
* lib/open3.rb: Open3 properly passes non-keyword hash args to spawn.
...
Fixed by Josh Cheek. [Fix GH-808]
Related to [ruby-core:67347] [Bug #10699 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-07 15:29:28 +00:00
headius
e0c3f58102
* test/test_open3.rb: Add a simple test for env hash on popen3.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-02 22:08:05 +00:00
akr
fb2008a73a
* test/lib/envutil.rb: Moved from test/ruby/.
...
* test/lib/find_executable.rb: Ditto.
* test/lib/memory_status.rb: Ditto.
* test/lib/test/unit.rb: require envutil.
* test/: Don't require envutil in test files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-13 16:05:37 +00:00
akr
14ad015896
* lib/open3.rb (Open3.capture3): Ignore Errno::EPIPE for writing
...
stdin_data.
(Open3.capture2): Ditto.
(Open3.capture2e): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-01 10:56:39 +00:00
naruse
19a50877e6
Join the thread to collect zombies
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-06-19 15:59:41 +00:00
nobu
e955cff06c
* test/test_open3.rb (TestOpen3#test_commandline): use simple
...
command via shell. [ruby-dev:41100]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-30 12:40:40 +00:00
nobu
6c33ace12c
* test/test_open3.rb (test_commandline): use dump instead of
...
shellwords. [ruby-core:23797]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29 11:10:18 +00:00
wanabe
fb9e836857
* test/test_open3.rb (test_commandline): skip the test with Shellwords on
...
Windows. see #1603
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29 10:51:01 +00:00
akr
37679ee584
supress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 23:12:50 +00:00
akr
3266ec1658
* lib/open3.rb (Open3.pipeline_start): return an array of threads if a
...
block is not given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 17:24:42 +00:00
akr
c0264efadd
* lib/open3.rb (Open3.capture3): renamed from Open3.poutput3.
...
(Open3.capture2): renamed from Open3.poutput2.
(lOpen3.capture2e): renamed from Open3.poutput2e.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-07 08:45:31 +00:00
akr
415e2cbd88
* lib/open3.rb (Open3.pipeline_start): new method.
...
(Open3.pipeline): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-05 10:07:13 +00:00
akr
bca9bf7fef
* lib/open3.rb (Open3.poutput3): new method.
...
(Open3.poutput2): ditto.
(Open3.poutput2e): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-04 14:24:54 +00:00
akr
87c7905bdc
* lib/open3.rb (Open3.popen3): simplified.
...
(Open3.popen_run): extracted from Open3.popen3.
(Open3.popen2): new method.
(Open3.popen2e): new method.
(Open3.pipeline_rw): new method.
(Open3.pipeline_r): new method.
(Open3.pipeline_w): new method.
(Open3.pipeline_run): new private method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-04 10:58:32 +00:00
akr
852b4629c1
* lib/open3.rb (Open3.popen3): merge hash options if given.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-02 10:23:48 +00:00