Backport #11085
closedFiddle::TestHandle#test_static_sym and Fiddle::TestHandle#test_NEXT: LoadError: cannot load such file -- -test-/dln/empty
Description
test/fiddle/test_handle.rb was fixed for issue 10384:
Fiddle::DLError: unknown symbol "Init_objspace" during Fiddle::TestHandle#test_NEXT and Fiddle::TestHandle#test_static_sym on Solaris
but now in Solaris, we see the below errors.
There is no -test-/dln/empty under the build directory.
-
Error:
Fiddle::TestHandle#test_static_sym:
LoadError: cannot load such file -- -test-/dln/empty
/XXX/ruby-2.1.6/lib/rubygems/core_ext/kernel_require.rb:55:inrequire' /XXX/ruby-2.1.6/lib/rubygems/core_ext/kernel_require.rb:55:in
require'
/XXX/ruby-2.1.6/test/fiddle/test_handle.rb:40:inrescue in test_static_sym' /XXX/ruby-2.1.6/test/fiddle/test_handle.rb:34:in
test_static_sym' -
Error:
Fiddle::TestHandle#test_NEXT:
LoadError: cannot load such file -- -test-/dln/empty
/XXX/ruby-2.1.6/lib/rubygems/core_ext/kernel_require.rb:55:inrequire' /XXX/ruby-2.1.6/lib/rubygems/core_ext/kernel_require.rb:55:in
require'
/XXX/ruby-2.1.6/test/fiddle/test_handle.rb:169:inrescue in test_NEXT' /XXX/ruby-2.1.6/test/fiddle/test_handle.rb:144:in
test_NEXT'