Issue #11085 has been updated by Naohisa Goto.


It seems r49154, (r49155 ?), r49156, r49159 is needed to be backported in addition to r49157.

----------------------------------------
Backport #11085: Fiddle::TestHandle#test_static_sym and Fiddle::TestHandle#test_NEXT: LoadError: cannot load such file -- -test-/dln/empty
https://bugs.ruby-lang.org/issues/11085#change-52214

* Author: April Chin
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
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.

 29) 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:in `require'
    /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:in `rescue in test_static_sym'   
    /XXX/ruby-2.1.6/test/fiddle/test_handle.rb:34:in `test_static_sym'
 
 31) 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:in `require'
    /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:in `rescue in test_NEXT'
    /XXX/ruby-2.1.6/test/fiddle/test_handle.rb:144:in `test_NEXT'




-- 
https://bugs.ruby-lang.org/