summaryrefslogtreecommitdiff
path: root/test/dl
AgeCommit message (Collapse)Author
2010-02-17* test/dl/test_method.rb: sinf(3) is in libm.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16* test/dl/test_{base,handle}.rb: use more verbose assertions.nobu
* 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
2010-02-16* ext/dl/method.c: Adding DL::Method as a superclass for DL::Functiontenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-07* test/dl/test_handle.rb (test_NEXT): fix for BSD.naruse
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
2010-02-03Wed Feb 3 10:12:09 2010 Aaron Patterson <tenderlove@ruby-lang.org>tenderlove
* 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
2010-02-02use require_relative.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-07* test/dl/test_callback.rb testing callback removaltenderlove
* 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
2009-12-04* ext/dl/cptr.c (to_int): DL::CPtr supports to_inttenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-04* test/dl/test_callback.rb (**): using DL::Function to test callbackstenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-03* test/dl/test_callback.rb (**): testing return values of dl callbackstenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-13* test/dl/test_cptr.rb (**): using ruby_xfree instead of libc's freetenderlove
* 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
2009-11-12* ext/dl/cptr.c (rb_dlptr_s_to_ptr): when wrapping a pointer it shouldtenderlove
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
2009-11-10* test/dl/test_func.rb (test_strtod): strtod test should not rely ontenderlove
memory layout git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-08* test/dl/test_callback.rb (**) adding a callback test filetenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-08* ext/dl/cfunc.c (**) updating documentationtenderlove
* 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
2009-11-07* ext/dl/cptr.c (rb_dlptr_inspect): making inspect consistent acrosstenderlove
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
2009-11-06* ext/dl/cfunc.c (rb_dlcfunc_initialize): cleaning up C macrostenderlove
* 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
2009-11-06* ext/dl/cptr.c (rb_dlptr_s_malloc, rb_dlptr_initialize): addingtenderlove
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
2009-11-06* ext/dl/cptr.c (rb_dlptr_to_str, rb_dlptr_to_s) adding documentationtenderlove
* 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
2009-11-06* ext/dl/cptr.c (rb_dlptr_inspect, rb_dlptr_plus, rb_dlptr_minus)tenderlove
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
2009-11-03* test/dl/test_cptr.rb (test_to_ptr*): testing DL::CPtr#to_ptrtenderlove
* 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
2009-11-03* ext/dl/cptr.c (rb_dlptr_eql, rb_dlptr_cmp): DL::CPtr#== and DL::CPtr#<=>tenderlove
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
2009-11-01* ext/dl/cptr.c (rb_dlptr_ptr, rb_dlptr_ref) adding documentationtenderlove
* 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
2009-11-01* ext/dl/cptr.c (rb_dlptr_to_value) added documentationtenderlove
* 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* ext/dl/cptr.c (rb_dlptr_size) splitting function to reduce complexitytenderlove
* 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* test/dl/test_dl2.rb (**) testing malloc and realloctenderlove
* ext/dl/dl.c (**) adding documentation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25* ext/dl/handle.c (**) adding documentationtenderlove
* 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* ext/dl/handle.c (rb_dlhandle_close_enabled_p) testing that handles cantenderlove
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* ext/dl/handle.c (**) adding documentationtenderlove
* 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* ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2)tenderlove
* 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* ext/dl/handle.c (rb_dlhandle_sym) removing unnecessary code. Addingtenderlove
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-24* ext/dl/handle.c (rb_dlhandle_close) check return value of dlclose()tenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23* ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2)tenderlove
[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-09-10* test/dl: use require_relative to require test_base.rb.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-10* test/dl/test_cptr.rb (test_free=): test SEGV at first.akr
[ruby-dev:39269] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09* test/dl/test_dl2.rb (test_call_double, test_sin): fixed argumentnobu
order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-07* test/dl/test_{cfunc,ptr}.rb: added tests from Aaron Patterson.nobu
see [ruby-dev:39249]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-18pattern refined for ldd on OpenBSD.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-16* test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.nobu
[ruby-core:22827] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11use argument only if it is absolute path.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11* test/dl/test_base.rb: decide dll name of MSVCRT from RUBY_SO_NAME on ↵usa
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-07use ldd to find libc and libm if no information.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-07add 64bit solaris library.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-07don't exit even if libc/libm is not found.akr
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-06* {ext,lib,test}/**/*.rb: removed trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-05* test/dl/test_base.rb: Add dragonfly to libc and libm switch.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03* test/dl: moved from ext/dl/test.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e