aboutsummaryrefslogtreecommitdiffstats
path: root/test/fiddle
diff options
context:
space:
mode:
Diffstat (limited to 'test/fiddle')
-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"