[前][次][番号順一覧][スレッド一覧]

ruby-changes:18591

From: kosaki <ko1@a...>
Date: Thu, 20 Jan 2011 23:55:31 +0900 (JST)
Subject: [ruby-changes:18591] Ruby:r30615 (trunk): * configure.in: Add '#include <stdlib.h>' to

kosaki	2011-01-20 23:34:39 +0900 (Thu, 20 Jan 2011)

  New Revision: 30615

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30615

  Log:
    * configure.in: Add '#include <stdlib.h>' to
      rb_cv_localtime_overflow test too. It's reported by Tomoyuki
      Chikanaga. Thanks.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/test/psych/test_json_tree.rb

Index: configure.in
===================================================================
--- configure.in	(revision 30614)
+++ configure.in	(revision 30615)
@@ -1485,6 +1485,7 @@
 # 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 <stdlib.h>
 #include <time.h>
 
 void
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30614)
+++ ChangeLog	(revision 30615)
@@ -1,3 +1,9 @@
+Thu Jan 20 23:25:28 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* configure.in: Add '#include <stdlib.h>' to
+	  rb_cv_localtime_overflow test too. It's reported by Tomoyuki
+	  Chikanaga. Thanks.
+
 Thu Jan 20 16:11:00 2011  Kenta Murata <mrkn@m...>
 
 	* README.EXT, README.EXT.ja: You shouldn't choose ``conftest.c'' as a
Index: test/psych/test_json_tree.rb
===================================================================
--- test/psych/test_json_tree.rb	(revision 30614)
+++ test/psych/test_json_tree.rb	(revision 30615)
@@ -41,8 +41,8 @@
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]