summaryrefslogtreecommitdiff
path: root/test/ruby/test_file.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-09 13:15:12 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-09 13:15:12 +0000
commit7df246bd795c2c56dd976420bac0e7a94cf88a40 (patch)
treeeabc2be7876a5fe1cb8ed8dab3fde3914bb89ba7 /test/ruby/test_file.rb
parent54cb63091d0fa0f4216b4a3b3312f1a062ecf26e (diff)
* test/ruby/test_file.rb (TestFile#test_utime_with_minus_time_segv):
fixed previous commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r--test/ruby/test_file.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb
index 5fc4d0e379..c40bf43e25 100644
--- a/test/ruby/test_file.rb
+++ b/test/ruby/test_file.rb
@@ -185,9 +185,10 @@ class TestFile < Test::Unit::TestCase
def test_utime_with_minus_time_segv
bug5596 = '[ruby-dev:44838]'
assert_in_out_err([], <<-EOS, [bug5596], [])
+ require "tempfile"
t = Time.at(-1)
begin
- f = Tempfile.new
+ f = Tempfile.new('test_utime_with_minus_time_segv')
File.utime(t, t, f)
rescue
end