1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/{dbm,gdbm}/test_{dbm,gdbm}.rb: shouldn't use host_os. use

target_os instead. [ruby-list:43225]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2007-02-27 16:22:10 +00:00
parent e38fd64fcd
commit c67d0e35e7
3 changed files with 9 additions and 4 deletions

View file

@ -12,7 +12,7 @@ if defined? GDBM
class TestGDBM < Test::Unit::TestCase
def TestGDBM.uname_s
require 'rbconfig'
case RbConfig::CONFIG['host_os']
case RbConfig::CONFIG['target_os']
when 'cygwin'
require 'Win32API'
uname = Win32API.new('cygwin1', 'uname', 'P', 'I')
@ -21,7 +21,7 @@ if defined? GDBM
utsname.unpack('A20' * 5)[0]
else
RbConfig::CONFIG['host_os']
RbConfig::CONFIG['target_os']
end
end
SYSTEM = uname_s