suppress a warning
This commit is contained in:
parent
7e96d9f96e
commit
ab4264a21f
@ -183,9 +183,12 @@ module Fiddle
|
||||
# it calls _nss_cache_cycle_prevention_function with dlsym(3).
|
||||
# So our Fiddle::Handle#sym must call dlerror(3) before call dlsym.
|
||||
# In general uses of dlerror(3) should call it before use it.
|
||||
verbose, $VERBOSE = $VERBOSE, nil
|
||||
require 'socket'
|
||||
Socket.gethostbyname("localhost")
|
||||
Fiddle.dlopen("/lib/libc.so.7").sym('strcpy')
|
||||
ensure
|
||||
$VERBOSE = verbose
|
||||
end if /freebsd/=~ RUBY_PLATFORM
|
||||
|
||||
def test_no_memory_leak
|
||||
|
Loading…
x
Reference in New Issue
Block a user