From 0ff55a1bd21f61f22fd2d176abbe5663372a6871 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 18 Mar 2009 12:19:52 +0000 Subject: [PATCH] pattern refined for ldd on OpenBSD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dl/test_base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb index 6f13d7d5f6..7eddbf8226 100644 --- a/test/dl/test_base.rb +++ b/test/dl/test_base.rb @@ -47,8 +47,8 @@ if !libc_so || !libm_so ruby = EnvUtil.rubybin ldd = `ldd #{ruby}` #puts ldd - libc_so = $1 if !libc_so && %r{libc\.so.*=>\s+(/\S*)} =~ ldd - libm_so = $1 if !libm_so && %r{libm\.so.*=>\s+(/\S*)} =~ ldd + libc_so = $& if !libc_so && %r{/\S*/libc\.so\S*} =~ ldd + libm_so = $& if !libm_so && %r{/\S*/libm\.so\S*} =~ ldd #p [libc_so, libm_so] end