mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/fiddle] test: suppress shadowing outer local variable warning
https://github.com/ruby/fiddle/commit/cf168680a2
This commit is contained in:
parent
ceccc16589
commit
5c7ef89db4
Notes:
git
2020-11-18 09:05:43 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -92,9 +92,9 @@ when /aix/
|
|||
funcs=%w!sin sinf strcpy strncpy!
|
||||
expfile='dltest.exp'
|
||||
require 'tmpdir'
|
||||
Dir.mktmpdir do |dir|
|
||||
Dir.mktmpdir do |_dir|
|
||||
begin
|
||||
Dir.chdir dir
|
||||
Dir.chdir _dir
|
||||
%x!/usr/bin/ar x /usr/lib/libc.a #{cobjs.join(' ')}!
|
||||
%x!/usr/bin/ar x /usr/lib/libm.a #{mobjs.join(' ')}!
|
||||
%x!echo "#{funcs.join("\n")}\n" > #{expfile}!
|
||||
|
|
Loading…
Reference in a new issue