mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
54cb63091d
commit
7df246bd79
2 changed files with 7 additions and 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>
|
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):
|
* 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
|
def test_utime_with_minus_time_segv
|
||||||
bug5596 = '[ruby-dev:44838]'
|
bug5596 = '[ruby-dev:44838]'
|
||||||
assert_in_out_err([], <<-EOS, [bug5596], [])
|
assert_in_out_err([], <<-EOS, [bug5596], [])
|
||||||
|
require "tempfile"
|
||||||
t = Time.at(-1)
|
t = Time.at(-1)
|
||||||
begin
|
begin
|
||||||
f = Tempfile.new
|
f = Tempfile.new('test_utime_with_minus_time_segv')
|
||||||
File.utime(t, t, f)
|
File.utime(t, t, f)
|
||||||
rescue
|
rescue
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue