summaryrefslogtreecommitdiff
path: root/test/ruby/test_time.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-30 18:53:41 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-30 18:53:41 +0000
commit3d38ba877eb14cc4d6b711e41d64953b366a502b (patch)
tree291f50b17c2feb15465669f146c4a83768af6f17 /test/ruby/test_time.rb
parent6eae4ecb0b4a6e2fb668e2471c30e8896e585c85 (diff)
downloadruby-3d38ba877eb14cc4d6b711e41d64953b366a502b.tar.gz
* vsnprintf.c (BSD__uqtoa): Fix overflow when long != quad_t.
patched by Peter Weldon <peter.weldon AT null.net> [ruby-core:33985] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_time.rb')
-rw-r--r--test/ruby/test_time.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb
index 8c96a0d2cd..ec5395092f 100644
--- a/test/ruby/test_time.rb
+++ b/test/ruby/test_time.rb
@@ -634,6 +634,9 @@ class TestTime < Test::Unit::TestCase
t.strftime("%m/%d/%Y %l:%M:%S.%9N"))
assert_equal("03/14/1592 6:53:58.97932384",
t.strftime("%m/%d/%Y %l:%M:%S.%8N"))
+
+ # [ruby-core:33985]
+ assert_equal("3000000000", Time.at(3000000000).strftime('%s'))
end
def test_delegate