Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Changeset 1628

Show
Ignore:
Timestamp:
09/21/05 21:01:29 (3 years ago)
Author:
nahi
Message:

suppress deliberate warnings with $VERBOSE = nil. closes #153.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/soap/wsdlDriver/test_calc.rb

    r1541 r1628  
    7575 
    7676  def test_old_driver 
    77     @client = ::SOAP::WSDLDriverFactory.new(@wsdl).create_driver 
     77    silent do 
     78      @client = ::SOAP::WSDLDriverFactory.new(@wsdl).create_driver 
     79    end 
    7880    @client.wiredump_dev = STDOUT if $DEBUG 
    7981    @client.endpoint_url = "http://localhost:#{Port}/" 
     
    8385    assert_equal(0.3, @client.add(0.1, 0.2)) 
    8486  end 
     87 
     88  def silent 
     89    back = $VERBOSE 
     90    $VERBOSE = nil 
     91    begin 
     92      yield 
     93    ensure 
     94      $VERBOSE = back 
     95    end 
     96  end 
    8597end 
    8698 
  • trunk/test/wsdl/any/test_any.rb

    r1520 r1628  
    2222    gen.opt['standalone_server_stub'] = nil 
    2323    gen.opt['force'] = true 
    24     gen.run 
     24    suppress_warning do 
     25      gen.run 
     26    end 
    2527    compare("expectedDriver.rb", "echoDriver.rb") 
    2628    compare("expectedEcho.rb", "echo.rb") 
     
    4143    File.open(pathname(file)) { |f| f.read } 
    4244  end 
     45 
     46  def suppress_warning 
     47    back = $VERBOSE 
     48    $VERBOSE = nil 
     49    begin 
     50      yield 
     51    ensure 
     52      $VERBOSE = back 
     53    end 
     54  end 
    4355end 
    4456 
  • trunk/test/wsdl/ref/test_ref.rb

    r1443 r1628  
    2020    gen.opt['classdef'] = nil 
    2121    gen.opt['force'] = true 
    22     gen.run 
     22    suppress_warning do 
     23      gen.run 
     24    end 
    2325    compare("expectedProduct.rb", "product.rb") 
    2426    File.unlink(pathname('product.rb')) 
     
    3638    File.join(DIR, filename) 
    3739  end 
     40 
     41  def suppress_warning 
     42    back = $VERBOSE 
     43    $VERBOSE = nil 
     44    begin 
     45      yield 
     46    ensure 
     47      $VERBOSE = back 
     48    end 
     49  end 
    3850end 
    3951 
  • trunk/test/wsdl/simpletype/rpc/test_rpc.rb

    r1520 r1628  
    2424    gen.opt['standalone_server_stub'] = nil 
    2525    gen.opt['force'] = true 
    26     gen.run 
     26    suppress_warning do 
     27      gen.run 
     28    end 
    2729    compare("expectedEchoVersion.rb", "echo_version.rb") 
    2830    compare("expectedDriver.rb", "echo_versionDriver.rb") 
     
    4547    File.open(pathname(file)) { |f| f.read } 
    4648  end 
     49 
     50  def suppress_warning 
     51    back = $VERBOSE 
     52    $VERBOSE = nil 
     53    begin 
     54      yield 
     55    ensure 
     56      $VERBOSE = back 
     57    end 
     58  end 
    4759end 
    4860