From 91fe36e99a75835d7100816c4368284558cf28d2 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 11 Apr 2013 06:35:43 +0000 Subject: Experimental fix for ffi_closure_free causes dumping core/SEGV http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20130411T041301Z.log.html.gz#test%2F-ext- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/fiddle/helper.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/fiddle') diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb index 2222df5ddd..2db252870d 100644 --- a/test/fiddle/helper.rb +++ b/test/fiddle/helper.rb @@ -109,5 +109,10 @@ module Fiddle @libc = Fiddle.dlopen(LIBC_SO) @libm = Fiddle.dlopen(LIBM_SO) end + + def teardown + if /linux/ =~ RUBY_PLATFORM + GC.start + end end end -- cgit v1.2.3