diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-09 13:15:12 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-09 13:15:12 +0000 |
commit | 7df246bd795c2c56dd976420bac0e7a94cf88a40 (patch) | |
tree | eabc2be7876a5fe1cb8ed8dab3fde3914bb89ba7 | |
parent | 54cb63091d0fa0f4216b4a3b3312f1a062ecf26e (diff) | |
download | ruby-7df246bd795c2c56dd976420bac0e7a94cf88a40.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_file.rb | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Nov 9 22:13:38 2011 NAKAMURA Usaku <usa@ruby-lang.org> + + * test/ruby/test_file.rb (TestFile#test_utime_with_minus_time_segv): + fixed previous commit. + Wed Nov 9 19:53:45 2011 NAKAMURA Usaku <usa@ruby-lang.org> * test/ruby/test_file.rb (TestFile#test_utime_with_minus_time_segv): 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 |