From 35c546104b00e1e773bcdfd59bb0cd580c85b190 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 14 Feb 2012 20:09:27 +0000 Subject: merge revision(s) 32712,32718,32719: [Backport #6014] * ext/dl/cfunc.c (dlcfunc_mark), ext/dl/cptr.c (dlptr_mark): workaround to mark wrapped object. this is not a true fix, because [Bug #4929] is caused by the interface design of DL. * ext/dl/cptr.c (rb_dlptr_s_to_ptr): fix wrapping condition. * ext/dl/cptr.c (rb_dlptr_s_to_ptr): fix wrapping condition. * ext/dl/cptr.c (rb_dlptr_s_to_ptr): use rb_check_funcall. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/dl/test_func.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/dl/test_func.rb b/test/dl/test_func.rb index 45d475c919..761ae43143 100644 --- a/test/dl/test_func.rb +++ b/test/dl/test_func.rb @@ -95,6 +95,11 @@ module DL buff = "9341" qsort.call(buff, buff.size, 1, cb) assert_equal("1349", buff) + + bug4929 = '[ruby-core:37395]' + buff = "9341" + EnvUtil.under_gc_stress {qsort.call(buff, buff.size, 1, cb)} + assert_equal("1349", buff, bug4929) end def test_qsort2() -- cgit v1.2.3