Skip to content

Commit

Permalink
* configure.in: Add '#include <stdlib.h>' to
Browse files Browse the repository at this point in the history
	  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
  • Loading branch information
kosaki committed Jan 20, 2011
1 parent cffda96 commit d41d2f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Thu Jan 20 23:25:28 2011 KOSAKI Motohiro <[email protected]>

* 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 <[email protected]>

* README.EXT, README.EXT.ja: You shouldn't choose ``conftest.c'' as a
Expand Down
1 change: 1 addition & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stdlib.h>
#include <time.h>

void
Expand Down
4 changes: 2 additions & 2 deletions test/psych/test_json_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d41d2f2

Please sign in to comment.