зеркало из https://github.com/github/ruby.git
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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
fb79364092
Коммит
64e2406427
|
@ -1,3 +1,9 @@
|
|||
Tue Jan 6 00:16:10 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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@gmail.com>
|
||||
|
||||
* test/ruby/test_io.rb: added timeout for AIX environment.
|
||||
|
|
|
@ -37,9 +37,9 @@ module Fiddle
|
|||
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
|
|||
# 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
|
||||
|
|
Загрузка…
Ссылка в новой задаче