Hiroshi Hatake
null+****@clear*****
Sat Jan 31 12:58:30 JST 2015
Hiroshi Hatake 2015-01-31 12:58:30 +0900 (Sat, 31 Jan 2015) New Revision: 5c5b36bba1084506187521133230f69871081ef3 https://github.com/ranguba/rroonga/commit/5c5b36bba1084506187521133230f69871081ef3 Message: Omit leap second test unless linux system I didn't found that how to use TZ environment variable in OS X.... :< Modified files: test/groonga-test-utils.rb test/test-record.rb Modified: test/groonga-test-utils.rb (+9 -0) =================================================================== --- test/groonga-test-utils.rb 2015-01-31 11:48:43 +0900 (4bbebdf) +++ test/groonga-test-utils.rb 2015-01-31 12:58:30 +0900 (d7b525f) @@ -165,6 +165,15 @@ module GroongaTestUtils omit("Ruby 1.9 is needed.") unless ruby19? end + def linux? + operating_system = `uname -s` + operating_system =~ /Linux/ + end + + def only_linux + omit("This test is only for Linux system.") unless linux? + end + def support_self_recursive_equal? self_recursive_hash1 = {} self_recursive_hash1["next"] = self_recursive_hash1 Modified: test/test-record.rb (+1 -0) =================================================================== --- test/test-record.rb 2015-01-31 11:48:43 +0900 (78fa6eb) +++ test/test-record.rb 2015-01-31 12:58:30 +0900 (8717912) @@ -654,6 +654,7 @@ class RecordTest < Test::Unit::TestCase end def test_to_json_with_leap_second + only_linux ENV["TZ"] = "right/Japan" created_at = Time.parse("2012-07-01T08:59:60+09:00") values = { -------------- next part -------------- HTML����������������������������...Download