Navigation Menu

Skip to content

Commit

Permalink
Use RUBY_PLATFORM to get system information
Browse files Browse the repository at this point in the history
It's portable than uname.
  • Loading branch information
kou committed Jan 31, 2015
1 parent 5c5b36b commit 54e631a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/groonga-test-utils.rb
Expand Up @@ -166,8 +166,7 @@ def only_ruby19
end

def linux?
operating_system = `uname -s`
operating_system =~ /Linux/
RUBY_PLATFORM =~ /linux/
end

def only_linux
Expand Down

0 comments on commit 54e631a

Please sign in to comment.