From d41d2f26ceeca3078aa8faff704e571247eb87e8 Mon Sep 17 00:00:00 2001 From: kosaki Date: Thu, 20 Jan 2011 14:34:39 +0000 Subject: [PATCH] * configure.in: Add '#include ' to rb_cv_localtime_overflow test too. It's reported by Tomoyuki Chikanaga. Thanks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ configure.in | 1 + test/psych/test_json_tree.rb | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0ccff23892c8af..895926092647ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Jan 20 23:25:28 2011 KOSAKI Motohiro + + * configure.in: Add '#include ' to + rb_cv_localtime_overflow test too. It's reported by Tomoyuki + Chikanaga. Thanks. + Thu Jan 20 16:11:00 2011 Kenta Murata * README.EXT, README.EXT.ja: You shouldn't choose ``conftest.c'' as a diff --git a/configure.in b/configure.in index 3a60ddf9a8cca7..c25296639c4651 100644 --- a/configure.in +++ b/configure.in @@ -1485,6 +1485,7 @@ fi # http://www.freebsd.org/cgi/query-pr.cgi?pr=145341 AC_CACHE_CHECK(for localtime(3) overflow correctly, rb_cv_localtime_overflow, [AC_TRY_RUN([ +#include #include void diff --git a/test/psych/test_json_tree.rb b/test/psych/test_json_tree.rb index 5fcb0d6a37f953..98c4678982cfea 100644 --- a/test/psych/test_json_tree.rb +++ b/test/psych/test_json_tree.rb @@ -41,8 +41,8 @@ def test_list_to_json end def test_time - time = Time.new(2010, 10, 10).utc - assert_equal "{\"a\": \"2010-10-10 07:00:00.000000000Z\"}\n", Psych.to_json({'a' => time }) + time = Time.utc(2010, 10, 10).utc + assert_equal "{\"a\": \"2010-10-10 00:00:00.000000000Z\"}\n", Psych.to_json({'a' => time }) end def test_datetime