diff --git a/test/dl/test_handle.rb b/test/dl/test_handle.rb index dc75605a2a..34fb33dd17 100644 --- a/test/dl/test_handle.rb +++ b/test/dl/test_handle.rb @@ -159,11 +159,11 @@ module DL # interface, below, should be used, since getpid() is a function and not a # data object.) # --- FreeBSD 8.0 dlsym(3) - assert_in_out_err([], <<-INPUT, /\A#\z/) do + assert_in_out_err(['-W0'], <<-INPUT, /\A#\z/) + require 'dl' require 'objspace' print DL::Handle::NEXT.inspect INPUT - end end end unless /mswin|mingw/ =~ RUBY_PLATFORM