mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/lib/envutil.rb (File.mkfifo): Defined using mkfifo command.
* test/ruby/test_io.rb: Ditto. * test/ruby/test_file_exhaustive.rb: Use File.mkfifo. * test/ruby/test_process.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
599bfa7233
commit
3024fc235a
5 changed files with 33 additions and 8 deletions
|
@ -3,6 +3,12 @@ require "open3"
|
|||
require "timeout"
|
||||
require_relative "find_executable"
|
||||
|
||||
def File.mkfifo(fn)
|
||||
raise NotImplementedError, "does not support fifo" if /mswin|mingw|bccwin/ =~ RUBY_PLATFORM
|
||||
ret = system("mkfifo", fn)
|
||||
raise NotImplementedError, "mkfifo fails" if !ret
|
||||
end
|
||||
|
||||
module EnvUtil
|
||||
def rubybin
|
||||
if ruby = ENV["RUBY"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue