summaryrefslogtreecommitdiffstats
path: root/test/dl
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-18 12:19:52 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-18 12:19:52 +0000
commit3ee0408853c2376a5dde876ae2e5712a73bbd63e (patch)
tree68c0149c5dbc304f949b83a290d78fb410ebd752 /test/dl
parent50ce6046252e0b2b77ceb6678f7c8f6dc7b0ff90 (diff)
downloadruby-3ee0408853c2376a5dde876ae2e5712a73bbd63e.tar.gz
ruby-3ee0408853c2376a5dde876ae2e5712a73bbd63e.tar.xz
ruby-3ee0408853c2376a5dde876ae2e5712a73bbd63e.zip
pattern refined for ldd on OpenBSD.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dl')
-rw-r--r--test/dl/test_base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb
index 6f13d7d5f..7eddbf822 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