We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bd8e96 commit 2b3747eCopy full SHA for 2b3747e
1 file changed
test/fiddle/test_handle.rb
@@ -183,9 +183,12 @@ def test_dlerror
183
# it calls _nss_cache_cycle_prevention_function with dlsym(3).
184
# So our Fiddle::Handle#sym must call dlerror(3) before call dlsym.
185
# In general uses of dlerror(3) should call it before use it.
186
+ verbose, $VERBOSE = $VERBOSE, nil
187
require 'socket'
188
Socket.gethostbyname("localhost")
189
Fiddle.dlopen("/lib/libc.so.7").sym('strcpy')
190
+ ensure
191
+ $VERBOSE = verbose
192
end if /freebsd/=~ RUBY_PLATFORM
193
194
def test_no_memory_leak
0 commit comments