зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
54cb63091d
Коммит
7df246bd79
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче