ruby-changes:11284
From: akr <ko1@a...>
Date: Thu, 12 Mar 2009 02:47:25 +0900 (JST)
Subject: [ruby-changes:11284] Ruby:r22896 (trunk): use argument only if it is absolute path.
akr 2009-03-12 02:47:20 +0900 (Thu, 12 Mar 2009) New Revision: 22896 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22896 Log: use argument only if it is absolute path. Modified files: trunk/test/dl/test_base.rb Index: test/dl/test_base.rb =================================================================== --- test/dl/test_base.rb (revision 22895) +++ test/dl/test_base.rb (revision 22896) @@ -33,8 +33,8 @@ libc_so = "/usr/lib/libc.so" libm_so = "/usr/lib/libm.so" else - libc_so = ARGV[0] - libm_so = ARGV[1] + libc_so = ARGV[0] if ARGV[0] && ARGV[0][0] == ?/ + libm_so = ARGV[1] if ARGV[1] && ARGV[1][0] == ?/ if( !(libc_so && libm_so) ) $stderr.puts("libc and libm not found: #{$0} <libc> <libm>") end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/