summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-18 11:11:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-18 11:11:14 +0000
commit9289515562230b6fa9f41559bbb3046f9556c8b3 (patch)
tree62ea7764478cd1612ad1410e95fdcbf554ee78d8 /test/lib
parent30f9177d5d43b15d5d14f7b18ab96c932fb131f4 (diff)
file.c: File.mkfifo
* file.c (rb_file_s_mkfifo): implement File.mkfifo. [Feature #11536] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/envutil.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb
index ebb2ef5..b37d180 100644
--- a/test/lib/envutil.rb
+++ b/test/lib/envutil.rb
@@ -4,10 +4,9 @@ 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
+end unless File.respond_to?(:mkfifo) or /mswin|mingw|bccwin/ =~ RUBY_PLATFORM
module EnvUtil
def rubybin