mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add explicitly require for Dir.mktmpdir
This commit is contained in:
parent
b2d96abb42
commit
ec1ab1d465
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ class TestIOWaitUncommon < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_fifo_wait
|
def test_fifo_wait
|
||||||
skip 'no mkfifo' unless File.respond_to?(:mkfifo) && IO.const_defined?(:NONBLOCK)
|
skip 'no mkfifo' unless File.respond_to?(:mkfifo) && IO.const_defined?(:NONBLOCK)
|
||||||
|
require 'tmpdir'
|
||||||
Dir.mktmpdir('rubytest-fifo') do |dir|
|
Dir.mktmpdir('rubytest-fifo') do |dir|
|
||||||
fifo = "#{dir}/fifo"
|
fifo = "#{dir}/fifo"
|
||||||
assert_equal 0, File.mkfifo(fifo)
|
assert_equal 0, File.mkfifo(fifo)
|
||||||
|
|
Loading…
Add table
Reference in a new issue