diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-11 17:47:20 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-11 17:47:20 +0000 |
commit | 68b3cd3ea2365b3bc008754fc6aba5841edfa9f2 (patch) | |
tree | 8d933e8a01fcfac23779c6b1a8e35ea0117ca045 /test/dl/test_base.rb | |
parent | de292258b9c7cb2909235e0bbc29a72cc0f086e4 (diff) | |
download | ruby-68b3cd3ea2365b3bc008754fc6aba5841edfa9f2.tar.gz |
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
Diffstat (limited to 'test/dl/test_base.rb')
-rw-r--r-- | test/dl/test_base.rb | 4 |
1 files 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} <libc> <libm>") end |