summaryrefslogtreecommitdiff
path: root/test/dl
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-28 06:34:01 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-28 06:34:01 +0000
commite269a71eeb2e360c0882b6c8309b80425d90ddd5 (patch)
tree9d7bfc20b492acaa0e2c60f988bda8608a0712a4 /test/dl
parente858442f4f9ca8dead0413a8fa140be92240f189 (diff)
* test/dl/test_base.rb (DL::LIBC_SO): its always msvc*.dll on
mswin/mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dl')
-rw-r--r--test/dl/test_base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb
index 3b22ce5..4ba0cca 100644
--- a/test/dl/test_base.rb
+++ b/test/dl/test_base.rb
@@ -25,7 +25,7 @@ when /linux/
libm_so = File.join(libdir, "libm.so.6")
when /mingw/, /mswin/
require "rbconfig"
- libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/, 2)[0] + ".dll"
+ libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/).find{|e| /^msvc/ =~ e} + ".dll"
when /darwin/
libc_so = "/usr/lib/libc.dylib"
libm_so = "/usr/lib/libm.dylib"