summaryrefslogtreecommitdiff
path: root/test/fiddle/helper.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-12 05:51:55 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-12 05:51:55 +0000
commitdd4dca8f064205412d4e3bbddaef46b93771357f (patch)
treee77b8bd61d1df98ac5fb0ac99ca83310cc12edd7 /test/fiddle/helper.rb
parent9a7d41ae19d8c012113ca79b5a4f6637c9b60fdb (diff)
* test/dl/test_base.rb (Fiddle::LIBC_SO): its always msvc*.dll on
mswin/mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fiddle/helper.rb')
-rw-r--r--test/fiddle/helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb
index b11f2e40c6..a95a43a963 100644
--- a/test/fiddle/helper.rb
+++ b/test/fiddle/helper.rb
@@ -28,7 +28,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"