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

ruby-changes:33628

From: akr <ko1@a...>
Date: Thu, 24 Apr 2014 22:40:24 +0900 (JST)
Subject: [ruby-changes:33628] akr:r45709 (trunk): * bootstraptest/test_io.rb: Don't use tmpdir because etc.so is not

akr	2014-04-24 22:40:18 +0900 (Thu, 24 Apr 2014)

  New Revision: 45709

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45709

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

  Modified files:
    trunk/ChangeLog
    trunk/bootstraptest/test_io.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45708)
+++ ChangeLog	(revision 45709)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Apr 24 22:38:55 2014  Tanaka Akira  <akr@f...>
+
+	* 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@m...>
 
 	* man/ruby.1: fix broken link.
Index: bootstraptest/test_io.rb
===================================================================
--- bootstraptest/test_io.rb	(revision 45708)
+++ bootstraptest/test_io.rb	(revision 45709)
@@ -42,9 +42,8 @@ assert_finish 1, %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_io.rb#L42
 }
 
 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{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_io.rb#L57
 }
 
 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

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

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