ruby-changes:15753
From: yugui <ko1@a...>
Date: Sun, 9 May 2010 01:05:42 +0900 (JST)
Subject: [ruby-changes:15753] Ruby:r27681 (trunk): * test/dl/test_base.rb (libc_so, libm_so): supports solaris.
yugui 2010-05-09 01:05:27 +0900 (Sun, 09 May 2010) New Revision: 27681 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27681 Log: * test/dl/test_base.rb (libc_so, libm_so): supports solaris. Modified files: trunk/ChangeLog trunk/test/dl/test_base.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 27680) +++ ChangeLog (revision 27681) @@ -1,3 +1,7 @@ +Sun May 9 00:35:56 2010 Yuki Sonoda (Yugui) <yugui@y...> + + * test/dl/test_base.rb (libc_so, libm_so): supports solaris. + Sat May 8 19:03:31 2010 Yuki Sonoda (Yugui) <yugui@y...> * spec/default.mspec (config): . is no longer in $:. Index: test/dl/test_base.rb =================================================================== --- test/dl/test_base.rb (revision 27680) +++ test/dl/test_base.rb (revision 27681) @@ -35,6 +35,18 @@ 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] == ?/ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/