diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-19 10:37:14 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-19 10:37:14 +0000 |
commit | 8e6faa4f97c2cd73a7b1ea881cc11636c39a05da (patch) | |
tree | 9d5a9f6c58cfab5ea98f88eaf23d21f8744813a7 /test/gdbm | |
parent | 82dbd0970c3314bc5361555d5671bbd7392f3cc0 (diff) | |
download | bundler-8e6faa4f97c2cd73a7b1ea881cc11636c39a05da.tar.gz |
* test/dbm/test_dbm.rb: Use Etc.uname.
* test/gdbm/test_gdbm.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/gdbm')
-rw-r--r-- | test/gdbm/test_gdbm.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index b406d59dc2..ae6985a5b4 100644 --- a/test/gdbm/test_gdbm.rb +++ b/test/gdbm/test_gdbm.rb @@ -14,12 +14,8 @@ if defined? GDBM require 'rbconfig' case RbConfig::CONFIG['target_os'] when 'cygwin' - require 'Win32API' - uname = Win32API.new('cygwin1', 'uname', 'P', 'I') - utsname = ' ' * 100 - raise 'cannot get system name' if uname.call(utsname) == -1 - - utsname.unpack('A20' * 5)[0] + require 'etc' + Etc.uname[:sysname] else RbConfig::CONFIG['target_os'] end |