Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions spec/ffi/callback_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,13 @@ module LibTestFiddle
extern 'void testClosureVrV(void *fp)'
end

after :all do
if Process.respond_to?(:fork)
GC.start
expect(ObjectSpace.each_object(Fiddle::Closure) {}).to eq(0)
end
end

def assert_callback_in_same_thread_called_once
called = 0
thread = nil
Expand Down