summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-13 13:46:10 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-13 13:46:10 +0000
commit3024fc235af08b8637e115692ab595592338a6fa (patch)
treef9918220c1f052841d91c0940a90f383c9d73df6 /test/lib
parent599bfa72332cf9dba6fff25dde5b17270c058635 (diff)
* 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
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/envutil.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb
index 1f43dbd..dc94a8f 100644
--- a/test/lib/envutil.rb
+++ b/test/lib/envutil.rb
@@ -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"]