summaryrefslogtreecommitdiff
path: root/test/test_open3.rb
Commit message (Collapse)AuthorAgeFilesLines
* Removed to load jit_support.rbHiroshi SHIBATA2023-03-141-4/+0
| | | | It's removed at 4445b9e2a2dda207a2b3698c042342dd794b1b35
* Remove unused methods from JITSupportTakashi Kokubun2023-03-111-5/+1
|
* s/mjit/rjit/Takashi Kokubun2023-03-061-1/+1
|
* [ruby/open3] Use omit instead of skip for test-unitHiroshi SHIBATA2022-01-121-1/+1
| | | | https://github.com/ruby/open3/commit/f6ca124b56
* [ruby/open3] Use RbConfig's 'host_os'Charles Oliver Nutter2021-12-091-1/+1
| | | | | | | RUBY_PLATFORM on JRuby is always 'java' so it does not indicate the host OS. https://github.com/ruby/open3/commit/d2308040e6
* [ruby/open3] Only use JITSupport on CRubyCharles Oliver Nutter2021-12-091-2/+9
| | | | | | Fixes #2 https://github.com/ruby/open3/commit/6b7ede69e8
* [open3] only close streams if a block is passedJean Boussier2020-06-181-0/+11
| | | | | | | | | | | | Ref: 5429deb075beb9a2b67adae269bbac16325876d1 The previous change totally borke `popen2e` in this usage: ```ruby require 'open3' stdin, stdout, process = Open3.popen2e("cat") puts stdout.read ```
* Restore support library for only test files.Hiroshi SHIBATA2019-07-091-1/+1
|
* Adjust jit_support file path.Hiroshi SHIBATA2019-07-021-1/+1
|
* Suppress unused variable warningsNobuyoshi Nakada2019-06-301-0/+1
|
* Removed unused variablesNobuyoshi Nakada2019-06-301-1/+1
|
* use :chdir option to avoid fd 3 to work with Windows.akr2018-12-131-2/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/test_open3.rb: skip a fd redirection test on windowsmame2018-12-121-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* open3.rb don't use keyword splat (**).akr2018-12-121-0/+5
| | | | | | | | | | | | | | | | | 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
* Remove needless closed?kazu2018-06-171-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_open3.rb: let test_popen2 work with --jitk0kubun2018-04-281-1/+2
| | | | | | 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
* lib/open3.rb: accept IO-like object for :stdin_data argument.akr2017-10-211-0/+31
| | | | | | | | | | 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
* * lib/open3.rb: Specify frozen_string_literal: true.akr2015-11-141-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add a test.akr2015-01-081-2/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_open3.rb (TestOpen3#test_numeric_file_descriptors): passing FDsusa2015-01-081-0/+1
| | | | | | | | | 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
* * lib/open3.rb: Open3 properly passes non-keyword hash args to spawn.akr2015-01-071-0/+8
| | | | | | | | | 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
* * test/test_open3.rb: Add a simple test for env hash on popen3.headius2014-12-021-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/lib/envutil.rb: Moved from test/ruby/.akr2014-11-131-1/+0
| | | | | | | | | | | | | | * 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
* * lib/open3.rb (Open3.capture3): Ignore Errno::EPIPE for writingakr2014-03-011-0/+19
| | | | | | | | | | 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
* Join the thread to collect zombiesnaruse2013-06-191-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_open3.rb (TestOpen3#test_commandline): use simplenobu2010-04-301-2/+2
| | | | | | command via shell. [ruby-dev:41100] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_open3.rb (test_commandline): use dump instead ofnobu2010-04-291-3/+1
| | | | | | | shellwords. [ruby-core:23797] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_open3.rb (test_commandline): skip the test with Shellwords onwanabe2010-04-291-0/+1
| | | | | | Windows. see #1603 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* supress warnings.akr2010-01-251-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.pipeline_start): return an array of threads if aakr2008-12-101-0/+9
| | | | | | | block is not given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.capture3): renamed from Open3.poutput3.akr2008-12-071-8/+8
| | | | | | | | (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
* * lib/open3.rb (Open3.pipeline_start): new method.akr2008-12-051-0/+35
| | | | | | | (Open3.pipeline): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.poutput3): new method.akr2008-12-041-0/+26
| | | | | | | | | (Open3.poutput2): ditto. (Open3.poutput2e): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.popen3): simplified.akr2008-12-041-85/+53
| | | | | | | | | | | | | | (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
* * lib/open3.rb (Open3.popen3): merge hash options if given. akr2008-12-021-0/+205
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e