Skip to content

Commit 2b3747e

Browse files
nursehsbt
authored andcommitted
suppress a warning
1 parent 0bd8e96 commit 2b3747e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/fiddle/test_handle.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,12 @@ def test_dlerror
183183
# it calls _nss_cache_cycle_prevention_function with dlsym(3).
184184
# So our Fiddle::Handle#sym must call dlerror(3) before call dlsym.
185185
# In general uses of dlerror(3) should call it before use it.
186+
verbose, $VERBOSE = $VERBOSE, nil
186187
require 'socket'
187188
Socket.gethostbyname("localhost")
188189
Fiddle.dlopen("/lib/libc.so.7").sym('strcpy')
190+
ensure
191+
$VERBOSE = verbose
189192
end if /freebsd/=~ RUBY_PLATFORM
190193

191194
def test_no_memory_leak

0 commit comments

Comments
 (0)