From ab4264a21f3e1f6a567d49064bf08e890f13c887 Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Mon, 25 Dec 2023 22:15:25 +0900 Subject: [PATCH] suppress a warning --- test/fiddle/test_handle.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/fiddle/test_handle.rb b/test/fiddle/test_handle.rb index c19bcc66233a6e..412c10e09d4127 100644 --- a/test/fiddle/test_handle.rb +++ b/test/fiddle/test_handle.rb @@ -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