diff --git a/ChangeLog b/ChangeLog index a07d1ab47c..2a1987feed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,3 @@ -Thu Apr 24 22:38:55 2014 Tanaka Akira - - * bootstraptest/test_io.rb: Don't use tmpdir because etc.so is not - usable from miniruby. - Thu Apr 24 21:09:55 2014 Kazuhiro NISHIYAMA * man/ruby.1: fix broken link. diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb index c37888fb1a..f7360f34b3 100644 --- a/bootstraptest/test_io.rb +++ b/bootstraptest/test_io.rb @@ -42,8 +42,9 @@ assert_finish 1, %q{ } assert_equal 'ok', %q{ + require 'tmpdir' begin - tmpname = "/tmp/ruby-btest-#{$$}-#{rand(0x100000000).to_s(36)}" + tmpname = "#{Dir.tmpdir}/ruby-btest-#{$$}-#{rand(0x100000000).to_s(36)}" rw = File.open(tmpname, File::RDWR|File::CREAT|File::EXCL) rescue Errno::EEXIST retry @@ -57,8 +58,9 @@ assert_equal 'ok', %q{ } assert_equal 'ok', %q{ + require 'tmpdir' begin - tmpname = "/tmp/ruby-btest-#{$$}-#{rand(0x100000000).to_s(36)}" + tmpname = "#{Dir.tmpdir}/ruby-btest-#{$$}-#{rand(0x100000000).to_s(36)}" rw = File.open(tmpname, File::RDWR|File::CREAT|File::EXCL) rescue Errno::EEXIST retry