1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bootstraptest/test_io.rb: Don't use tmpdir because etc.so is not

usable from miniruby.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-04-24 13:40:18 +00:00
parent defcc5aa0f
commit b3cd42ede0
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Thu Apr 24 22:38:55 2014 Tanaka Akira <akr@fsij.org>
* 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 <zn@mbf.nifty.com>
* man/ruby.1: fix broken link.

View file

@ -42,9 +42,8 @@ assert_finish 1, %q{
}
assert_equal 'ok', %q{
require 'tmpdir'
begin
tmpname = "#{Dir.tmpdir}/ruby-btest-#{$$}-#{rand(0x100000000).to_s(36)}"
tmpname = "/tmp/ruby-btest-#{$$}-#{rand(0x100000000).to_s(36)}"
rw = File.open(tmpname, File::RDWR|File::CREAT|File::EXCL)
rescue Errno::EEXIST
retry
@ -58,9 +57,8 @@ assert_equal 'ok', %q{
}
assert_equal 'ok', %q{
require 'tmpdir'
begin
tmpname = "#{Dir.tmpdir}/ruby-btest-#{$$}-#{rand(0x100000000).to_s(36)}"
tmpname = "/tmp/ruby-btest-#{$$}-#{rand(0x100000000).to_s(36)}"
rw = File.open(tmpname, File::RDWR|File::CREAT|File::EXCL)
rescue Errno::EEXIST
retry