summaryrefslogtreecommitdiff
path: root/test/lib/with_different_ofs.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-18 21:56:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-18 21:56:55 +0000
commit3ee0648dc7a5465b2cbadd7246fc2edbd676d759 (patch)
tree02b758f59e65fa4ea9b6861956807ba49be638d4 /test/lib/with_different_ofs.rb
parent4751caecc357c313c3c81c3d422a3cbc880c6ecc (diff)
io.c: warn non-nil $,
* array.c (rb_ary_join_m): warn use of non-nil $,. * io.c (rb_output_fs_setter): warn when set to non-nil value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/with_different_ofs.rb')
-rw-r--r--test/lib/with_different_ofs.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/with_different_ofs.rb b/test/lib/with_different_ofs.rb
index b7ac646f8f..559ed6a1d1 100644
--- a/test/lib/with_different_ofs.rb
+++ b/test/lib/with_different_ofs.rb
@@ -3,10 +3,14 @@ module DifferentOFS
module WithDifferentOFS
def setup
super
+ verbose, $VERBOSE = $VERBOSE, nil
@ofs, $, = $,, "-"
+ $VERBOSE = verbose
end
def teardown
+ verbose, $VERBOSE = $VERBOSE, nil
$, = @ofs
+ $VERBOSE = verbose
super
end
end