Fix a constant reference.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-05-18 08:33:39 +00:00
parent 5d6ed9081e
commit 741b7c46b8

View File

@ -727,7 +727,7 @@ class TestM17NComb < Test::Unit::TestCase
def test_str_crypt
strict_crypt = nil
# glibc 2.16 or later denies salt contained other than [0-9A-Za-z./] #7312
if defined? Etc::Etc::CS_GNU_LIBC_VERSION
if defined? Etc::CS_GNU_LIBC_VERSION
glibcver = Etc.confstr(Etc::CS_GNU_LIBC_VERSION).scan(/\d+/).map(&:to_i)
strict_crypt = (glibcver <=> [2, 16]) >= 0
end