summaryrefslogtreecommitdiff
path: root/test/wsdl/ref/test_ref.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-20 13:32:40 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-20 13:32:40 +0000
commitdb824a34dd324685a919e19ffed486ce9a968088 (patch)
tree9df76c416659a5afb3b78bc670f0c2fcf5762f1c /test/wsdl/ref/test_ref.rb
parent8d0316c5aba7783c546350514c2b9add23c1ed9f (diff)
* test/wsdl/simpletype/rpc/test_rpc.rb, test/wsdl/ref/test_ref.rb,
test/wsdl/any/test_any.rb test/soap/wsdlDriver/test_calc.rb: suppress deliberate warnings with $VERBOSE = nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/wsdl/ref/test_ref.rb')
-rw-r--r--test/wsdl/ref/test_ref.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/wsdl/ref/test_ref.rb b/test/wsdl/ref/test_ref.rb
index 165a8643e9..9e29fa31e0 100644
--- a/test/wsdl/ref/test_ref.rb
+++ b/test/wsdl/ref/test_ref.rb
@@ -19,7 +19,9 @@ class TestRef < Test::Unit::TestCase
gen.logger.level = Logger::FATAL
gen.opt['classdef'] = nil
gen.opt['force'] = true
- gen.run
+ suppress_warning do
+ gen.run
+ end
compare("expectedProduct.rb", "product.rb")
File.unlink(pathname('product.rb'))
end
@@ -35,6 +37,16 @@ class TestRef < Test::Unit::TestCase
def pathname(filename)
File.join(DIR, filename)
end
+
+ def suppress_warning
+ back = $VERBOSE
+ $VERBOSE = nil
+ begin
+ yield
+ ensure
+ $VERBOSE = back
+ end
+ end
end