tenderlove
4b76900a55
* ext/dl/cptr.c (rb_dlptr_to_value) added documentation
...
* test/dl/test_cptr.rb (test_to_value) testing DL::CPtr#to_value
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:46:56 +00:00
tenderlove
6cf6d8556c
* ext/dl/cptr.c (rb_dlptr_size) splitting function to reduce complexity
...
* ext/dl/cptr.c (rb_dlptr_null_p, rb_dlptr_aref, rb_dlptr_aset) adding
documentation
* ext/dl/dl.c (rb_dl_free) adding documentation
* test/dl/test_cptr.rb (test_null?, test_size, test_size=,
test_aref_aset) Improving test coverage
* test/dl/test_dl2.rb (test_free_secure) improving test coverage
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:46:44 +00:00
tenderlove
5f3d0f5233
* test/dl/test_dl2.rb (**) testing malloc and realloc
...
* ext/dl/dl.c (**) adding documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-01 01:46:27 +00:00
tenderlove
3f6f9f87ca
* ext/dl/handle.c (**) adding documentation
...
* test/dl/test_handle.rb (test_NEXT) testing the NEXT handle
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:56 +00:00
tenderlove
1578edbafc
* ext/dl/handle.c (rb_dlhandle_close_enabled_p) testing that handles can
...
be enabled and disabled for closure on GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:41 +00:00
tenderlove
159e6439c0
* ext/dl/handle.c (**) adding documentation
...
* test/dl/test_handle.rb (**) testing to_i and initialize
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:29 +00:00
tenderlove
60f86b2edb
* ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2)
...
* test/dl/test_handle.rb (**) testing sym behavior
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:15 +00:00
tenderlove
c30de1e38e
* ext/dl/handle.c (rb_dlhandle_sym) removing unnecessary code. Adding
...
documentation and tests for current functionality.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25 00:11:02 +00:00
tenderlove
a631b5df36
* ext/dl/handle.c (rb_dlhandle_close) check return value of dlclose()
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24 21:56:50 +00:00
tenderlove
5ee251bdad
* ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2)
...
[ruby-core:25762]
* ext/dl/dl.c (rb_dl_dlopen) removed rb_secure(2)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23 16:44:41 +00:00
akr
3ce642f5af
* test/dl: use require_relative to require test_base.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-10 17:14:53 +00:00
akr
3707fd4941
* test/dl/test_cptr.rb (test_free=): test SEGV at first.
...
[ruby-dev:39269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-10 12:22:59 +00:00
nobu
098d8d11e1
* test/dl/test_dl2.rb (test_call_double, test_sin): fixed argument
...
order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09 12:04:29 +00:00
nobu
922bc54adb
* test/dl/test_{cfunc,ptr}.rb: added tests from Aaron Patterson.
...
see [ruby-dev:39249].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-07 23:32:32 +00:00
akr
0ff55a1bd2
pattern refined for ldd on OpenBSD.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-18 12:19:52 +00:00
nobu
1b6808913a
* test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.
...
[ruby-core:22827]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-16 08:15:10 +00:00
akr
68b3cd3ea2
use argument only if it is absolute path.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 17:47:20 +00:00
usa
612fe10526
* test/dl/test_base.rb: decide dll name of MSVCRT from RUBY_SO_NAME on native Win32 platforms. [ruby-core:22828]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 08:39:37 +00:00
akr
cc8b3517ed
use ldd to find libc and libm if no information.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-07 17:21:40 +00:00
akr
5abafda826
add 64bit solaris library.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-07 16:56:54 +00:00
akr
dd76b8b8b1
don't exit even if libc/libm is not found.
...
check lib[cm].so.6.1 as well on linux.
add solaris lib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-07 03:10:44 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
naruse
9e75b26702
* test/dl/test_base.rb: Add dragonfly to libc and libm switch.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-05 01:33:22 +00:00
nobu
f9ca2119e4
* test/dl: moved from ext/dl/test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 06:03:23 +00:00