ruby-changes:37076
From: nobu <ko1@a...>
Date: Tue, 6 Jan 2015 00:16:26 +0900 (JST)
Subject: [ruby-changes:37076] nobu:r49157 (trunk): test_handle.rb: use -test-/dln/empty
nobu 2015-01-06 00:16:13 +0900 (Tue, 06 Jan 2015) New Revision: 49157 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49157 Log: test_handle.rb: use -test-/dln/empty * test/fiddle/test_handle.rb (test_NEXT): use -test-/dln/empty which is always a shared object and is not used by others. [ruby-dev:48629] [Bug #10384] Modified files: trunk/ChangeLog trunk/test/fiddle/test_handle.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 49156) +++ ChangeLog (revision 49157) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Jan 6 00:16:10 2015 Nobuyoshi Nakada <nobu@r...> + + * test/fiddle/test_handle.rb (test_NEXT): use -test-/dln/empty + which is always a shared object and is not used by others. + [ruby-dev:48629] [Bug #10384] + Mon Jan 5 14:58:01 2015 SHIBATA Hiroshi <shibata.hiroshi@g...> * test/ruby/test_io.rb: added timeout for AIX environment. Index: test/fiddle/test_handle.rb =================================================================== --- test/fiddle/test_handle.rb (revision 49156) +++ test/fiddle/test_handle.rb (revision 49157) @@ -37,9 +37,9 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_handle.rb#L37 rescue end # NetBSD - require 'objspace' - refute_nil Fiddle::Handle.sym('Init_objspace') - assert_equal Fiddle::Handle.sym('Init_objspace'), Fiddle::Handle['Init_objspace'] + require '-test-/dln/empty' + refute_nil Fiddle::Handle.sym('Init_empty') + assert_equal Fiddle::Handle.sym('Init_empty'), Fiddle::Handle['Init_empty'] return rescue end @@ -171,9 +171,9 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_handle.rb#L171 # interface, below, should be used, since getpid() is a function and not a # data object.) # --- FreeBSD 8.0 dlsym(3) - require 'objspace' + require '-test-/dln/empty' handle = Handle::NEXT - refute_nil handle['Init_objspace'] + refute_nil handle['Init_empty'] return rescue end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/