[前][次][番号順一覧][スレッド一覧]

ruby-changes:62431

From: Hiroshi <ko1@a...>
Date: Thu, 30 Jul 2020 21:22:01 +0900 (JST)
Subject: [ruby-changes:62431] ec1ab1d465 (master): Add explicitly require for Dir.mktmpdir

https://git.ruby-lang.org/ruby.git/commit/?id=ec1ab1d465

From ec1ab1d46542a5332b887b750f694836fd5e44b9 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 30 Jul 2020 21:01:22 +0900
Subject: Add explicitly require for Dir.mktmpdir


diff --git a/test/io/wait/test_io_wait_uncommon.rb b/test/io/wait/test_io_wait_uncommon.rb
index e7f222c..28b4a0f 100644
--- a/test/io/wait/test_io_wait_uncommon.rb
+++ b/test/io/wait/test_io_wait_uncommon.rb
@@ -19,6 +19,7 @@ class TestIOWaitUncommon < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/io/wait/test_io_wait_uncommon.rb#L19
 
   def test_fifo_wait
     skip 'no mkfifo' unless File.respond_to?(:mkfifo) && IO.const_defined?(:NONBLOCK)
+    require 'tmpdir'
     Dir.mktmpdir('rubytest-fifo') do |dir|
       fifo = "#{dir}/fifo"
       assert_equal 0, File.mkfifo(fifo)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]