summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2020-11-17 11:12:09 +0900
committerSutou Kouhei <kou@cozmixng.org>2020-11-18 09:05:13 +0900
commit5c7ef89db4eb97b65ca1601babf76b9396ce75bc (patch)
treea79e9f15639618247e0b52296e9d48a543c38d60
parentceccc16589f97c4e2e95c7ae655551c1e54f5f8b (diff)
[ruby/fiddle] test: suppress shadowing outer local variable warning
https://github.com/ruby/fiddle/commit/cf168680a2
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3780
-rw-r--r--test/fiddle/helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb
index f5cceddb88..13bd3ed4ea 100644
--- a/test/fiddle/helper.rb
+++ b/test/fiddle/helper.rb
@@ -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}!