Skip to content

Commit

Permalink
suppress a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nurse committed Dec 25, 2023
1 parent 7e96d9f commit ab4264a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fiddle/test_handle.rb
Expand Up @@ -183,9 +183,12 @@ def test_dlerror
# 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
Expand Down

0 comments on commit ab4264a

Please sign in to comment.