summaryrefslogtreecommitdiff
path: root/test/dl
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-08 16:05:27 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-08 16:05:27 +0000
commitffde073b0c2875ccfc23d09d74c351000bbcb969 (patch)
tree03523f69ca08666904458e68a2ab27b86c979a6e /test/dl
parent8f3e3995df3697f4fdf6ea30b9340c51947812c5 (diff)
* test/dl/test_base.rb (libc_so, libm_so): supports solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dl')
-rw-r--r--test/dl/test_base.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb
index b8fca3c..c9b5419 100644
--- a/test/dl/test_base.rb
+++ b/test/dl/test_base.rb
@@ -35,6 +35,18 @@ when /kfreebsd/
when /bsd|dragonfly/
libc_so = "/usr/lib/libc.so"
libm_so = "/usr/lib/libm.so"
+when /solaris/
+ libdir = '/lib'
+ case [0].pack('L!').size
+ when 4
+ # 32-bit ruby
+ libdir = '/lib' if File.directory? '/lib'
+ when 8
+ # 64-bit ruby
+ libdir = '/lib/64' if File.directory? '/lib/64'
+ end
+ libc_so = File.join(libdir, "libc.so.6")
+ libm_so = File.join(libdir, "libm.so.6")
else
libc_so = ARGV[0] if ARGV[0] && ARGV[0][0] == ?/
libm_so = ARGV[1] if ARGV[1] && ARGV[1][0] == ?/