diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-12 03:18:04 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-12 03:18:04 +0000 |
commit | edacc7d236b87ab3a53a5812967a8fd75d61cd09 (patch) | |
tree | 08e193b6fceaf8f3364b6d8f4d6690cf801a600f /test/ruby/test_m17n_comb.rb | |
parent | 062d2ee6f798205c3046730d0d348cfd0d0bc09d (diff) | |
download | ruby-edacc7d236b87ab3a53a5812967a8fd75d61cd09.tar.gz |
Get libc's path by ldd [Bug #7828] [ruby-core:52129]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n_comb.rb')
-rw-r--r-- | test/ruby/test_m17n_comb.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_m17n_comb.rb b/test/ruby/test_m17n_comb.rb index 904c6095e7..2de7179996 100644 --- a/test/ruby/test_m17n_comb.rb +++ b/test/ruby/test_m17n_comb.rb @@ -722,7 +722,8 @@ class TestM17NComb < Test::Unit::TestCase def test_str_crypt begin # glibc 2.16 or later denies salt contained other than [0-9A-Za-z./] #7312 - glibcver = `#{RbConfig::CONFIG["libdir"]}/libc.so.6`[/\AGNU C Library.*version ([0-9.]+)/, 1].split('.').map(&:to_i) + glibcpath = `ldd #{RbConfig.ruby}`[/\S+\/libc.so\S+/] + glibcver = `#{glibcpath}`[/\AGNU C Library.*version ([0-9.]+)/, 1].split('.').map(&:to_i) strict_crypt = (glibcver <=> [2, 16]) > -1 rescue end |