summaryrefslogtreecommitdiff
path: root/bootstraptest/test_io.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-24 13:40:18 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-24 13:40:18 +0000
commitb3cd42ede0d1534079907f298f40ceac5f43ef0d (patch)
treea969e577e2a00411e94713d1197fd45c7461e52d /bootstraptest/test_io.rb
parentdefcc5aa0f5e12c5586ebc3f64a6c25b47fd9784 (diff)
* 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
Diffstat (limited to 'bootstraptest/test_io.rb')
-rw-r--r--bootstraptest/test_io.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb
index f7360f3..c37888f 100644
--- a/bootstraptest/test_io.rb
+++ b/bootstraptest/test_io.rb
@@ -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