From 68b3cd3ea2365b3bc008754fc6aba5841edfa9f2 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 11 Mar 2009 17:47:20 +0000 Subject: [PATCH] use argument only if it is absolute path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dl/test_base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb index d7fb354b6d..6f13d7d5f6 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