From aa84e4057701572394c79d6350daf9ae9c9b2960 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 11 Mar 2009 17:47:20 +0000 Subject: use argument only if it is absolute path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dl/test_base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb index d7fb354b6..6f13d7d5f 100644 --- a/test/dl/test_base.rb +++ b/test/dl/test_base.rb @@ -33,8 +33,8 @@ when /bsd|dragonfly/ 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} ") end -- cgit