aboutsummaryrefslogtreecommitdiffstats
path: root/test/dl
Commit message (Collapse)AuthorAgeFilesLines
...
* * test/dl/test_dl2.rb (DL::TestDL#ptr2num): add for LLP64.wanabe2010-03-191-4/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_dl2.rb: require 'dl/func' to refer DL::Function.wanabe2010-03-191-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_method.rb: delete a residual test for dl on libffi.mame2010-03-091-11/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_closure.rb: forget to revert at r26764.muraken2010-03-021-130/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_method.rb: sinf(3) is in libm.naruse2010-02-171-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_{base,handle}.rb: use more verbose assertions.nobu2010-02-163-14/+14
| | | | | | | | * test/dl/test_import.rb (DL::LIBC::BoundQsortCallback): renamed to get rid of overwriting warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/method.c: Adding DL::Method as a superclass for DL::Functiontenderlove2010-02-161-0/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_handle.rb (test_NEXT): fix for BSD.naruse2010-02-071-2/+29
| | | | | | | Linux and Darwin's RTLD_NEXT searchs second occurrence of the function. But FreeBSD and NetBSD's RTLD_NEXT searchs in libraries loaded after dl. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wed Feb 3 10:12:09 2010 Aaron Patterson <tenderlove@ruby-lang.org>tenderlove2010-02-034-6/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ext/dl/function.c: DL::Function now uses libffi * ext/dl/cfunc.c (rb_dl_set_last_error): set to non static so errors can be exposed. * ext/dl/closure.c: DL::Closure will now be used in place of ext/dl/callback/*. * ext/dl/dl.c: legacy callbacks removed in favor of libffi * ext/dl/dl_converions.(c,h): used for converting ruby types to FFI types. * ext/dl/callback/*: replaced by libffi callbacks. * ext/dl/lib/dl/callback.rb: Converting internal callbacks to use DL::Closure * ext/dl/lib/dl/closure.rb: Ruby parts of the new DL::Closure object * ext/dl/lib/dl/import.rb: More conversion to use DL::Closure object * ext/dl/lib/dl/value.rb (ruby2ffi): adding private method for DL::CPtr to ffi value conversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use require_relative.akr2010-02-021-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_callback.rb testing callback removaltenderlove2009-12-072-0/+23
| | | | | | * test/dl/test_func.rb testing function names, to_i git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (to_int): DL::CPtr supports to_inttenderlove2009-12-041-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_callback.rb (**): using DL::Function to test callbackstenderlove2009-12-041-3/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_callback.rb (**): testing return values of dl callbackstenderlove2009-12-031-0/+23
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_cptr.rb (**): using ruby_xfree instead of libc's freetenderlove2009-11-132-5/+5
| | | | | | * test/dl/test_func.rb (test_strdod): strtod needs a char ** argument git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_to_ptr): when wrapping a pointer it shouldtenderlove2009-11-121-1/+1
| | | | | | | keep a reference to the object it's wrapping * test/dl/test_func.rb use standard test methods git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_func.rb (test_strtod): strtod test should not rely ontenderlove2009-11-101-2/+2
| | | | | | memory layout git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_callback.rb (**) adding a callback test filetenderlove2009-11-081-0/+32
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (**) updating documentationtenderlove2009-11-081-0/+9
| | | | | | | * test/dl/test_cfunc.rb (test_ptr=, test_ptr) testing the pointer accessor methods on CFunc git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_inspect): making inspect consistent acrosstenderlove2009-11-071-2/+2
| | | | | | | platforms * test/dl/test_cptr.rb (test_inspect): testing inspect git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (rb_dlcfunc_initialize): cleaning up C macrostenderlove2009-11-061-0/+6
| | | | | | | * ext/dl/cfunc.c (**): adding documentation * test/dl/test_cfunc.rb (test_set_calltype) testing calltype git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_malloc, rb_dlptr_initialize): addingtenderlove2009-11-061-0/+16
| | | | | | | | documentation * test/dl/test_cptr.rb (**): testing that malloc works when passed free functions git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_to_str, rb_dlptr_to_s) adding documentationtenderlove2009-11-061-0/+22
| | | | | | | * test/dl/test_cptr.rb (test_to_str, test_to_s) testing the stringification of DL::Ptr git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_inspect, rb_dlptr_plus, rb_dlptr_minus)tenderlove2009-11-061-0/+22
| | | | | | | | documenting +, -, inspect * text/dl/test_cptr.rb (test_minus, test_plus, test_inspect) testing minus, plus, and inspect git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_cptr.rb (test_to_ptr*): testing DL::CPtr#to_ptrtenderlove2009-11-031-0/+36
| | | | | | | * ext/dl/cptr.c (rb_dlptr_free_set, rb_dlptr_free_get, rb_dlptr_s_to_ptr): adding documentation, fixing indentation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_eql, rb_dlptr_cmp): DL::CPtr#== and DL::CPtr#<=>tenderlove2009-11-031-0/+16
| | | | | | should not raise an exception when compared to a different object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_ptr, rb_dlptr_ref) adding documentationtenderlove2009-11-011-0/+8
| | | | | | * test/dl/test_cptr.rb (test_ref_ptr) testing CPtr#ref and CPtr#ptr git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_to_value) added documentationtenderlove2009-11-011-0/+6
| | | | | | * 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
* * ext/dl/cptr.c (rb_dlptr_size) splitting function to reduce complexitytenderlove2009-11-012-22/+61
| | | | | | | | | | | * 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
* * test/dl/test_dl2.rb (**) testing malloc and realloctenderlove2009-11-011-0/+47
| | | | | | * ext/dl/dl.c (**) adding documentation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (**) adding documentationtenderlove2009-10-251-0/+10
| | | | | | * 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
* * ext/dl/handle.c (rb_dlhandle_close_enabled_p) testing that handles cantenderlove2009-10-251-0/+17
| | | | | | 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
* * ext/dl/handle.c (**) adding documentationtenderlove2009-10-251-0/+15
| | | | | | * 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
* * ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2)tenderlove2009-10-251-0/+29
| | | | | | * 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
* * ext/dl/handle.c (rb_dlhandle_sym) removing unnecessary code. Addingtenderlove2009-10-251-0/+25
| | | | | | documentation and tests for current functionality. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_close) check return value of dlclose()tenderlove2009-10-241-0/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2)tenderlove2009-10-231-0/+27
| | | | | | | [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
* * test/dl: use require_relative to require test_base.rb.akr2009-09-106-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_cptr.rb (test_free=): test SEGV at first.akr2009-09-101-0/+15
| | | | | | | [ruby-dev:39269] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_dl2.rb (test_call_double, test_sin): fixed argumentnobu2009-09-091-6/+7
| | | | | | | order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_{cfunc,ptr}.rb: added tests from Aaron Patterson.nobu2009-09-072-0/+77
| | | | | | | see [ruby-dev:39249]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* pattern refined for ldd on OpenBSD.akr2009-03-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.nobu2009-03-161-3/+3
| | | | | | | [ruby-core:22827] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use argument only if it is absolute path.akr2009-03-111-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_base.rb: decide dll name of MSVCRT from RUBY_SO_NAME on ↵usa2009-03-111-5/+5
| | | | | | native Win32 platforms. [ruby-core:22828] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use ldd to find libc and libm if no information.akr2009-03-071-30/+33
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add 64bit solaris library.akr2009-03-071-2/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't exit even if libc/libm is not found.akr2009-03-071-4/+12
| | | | | | | | | 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
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-062-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_base.rb: Add dragonfly to libc and libm switch.naruse2009-03-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e