Navigation Menu

Skip to content

Commit

Permalink
Omit leap second test unless linux system
Browse files Browse the repository at this point in the history
I didn't found that how to use TZ environment variable in OS X.... :<
  • Loading branch information
cosmo0920 committed Jan 31, 2015
1 parent c21b0b4 commit 5c5b36b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/groonga-test-utils.rb
Expand Up @@ -165,6 +165,15 @@ def only_ruby19
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
Expand Down
1 change: 1 addition & 0 deletions test/test-record.rb
Expand Up @@ -654,6 +654,7 @@ def test_to_json
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 = {
Expand Down

0 comments on commit 5c5b36b

Please sign in to comment.