summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-11 06:35:43 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-11 06:35:43 +0000
commit91fe36e99a75835d7100816c4368284558cf28d2 (patch)
treed3220393340ffc06690a7fc31f08c465f62b1254 /test
parent13fb747c376c2c8e46bb3df13e81aaa52988a4f4 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/dl/test_base.rb5
-rw-r--r--test/fiddle/helper.rb5
2 files changed, 10 insertions, 0 deletions
diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb
index 083ad49497..b7b5d995dd 100644
--- a/test/dl/test_base.rb
+++ b/test/dl/test_base.rb
@@ -130,5 +130,10 @@ module DL
def test_empty()
end
+
+ def teardown
+ if /linux/ =~ RUBY_PLATFORM
+ GC.start
+ end
end
end
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