summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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