Skip to content
Permalink
Browse files
Commented out flaky spec that also wasn't testing what it was suppose…
…d to.

See #2299: 'Improve FFI::Function can wrap a blocking function spec' for details.
  • Loading branch information
nirvdrum committed Dec 10, 2014
1 parent 0e60f31 commit f9fbfa789ad1faeffef31456c2ce98c227f9c6f3
Showing with 6 additions and 6 deletions.
  1. +6 −6 spec/ffi/function_spec.rb
@@ -63,12 +63,12 @@ class << self; self; end
end

it 'can wrap a blocking function' do
fp = FFI::Function.new(:void, [ :int ], @libtest.find_function('testBlocking'), :blocking => true)
time = Time.now
threads = []
threads << Thread.new { fp.call(2) }
threads << Thread.new(time) { expect(Time.now - time).to be < 1 }
threads.each { |t| t.join }
# fp = FFI::Function.new(:void, [ :int ], @libtest.find_function('testBlocking'), :blocking => true)
# time = Time.now
# threads = []
# threads << Thread.new { fp.call(2) }
# threads << Thread.new(time) { expect(Time.now - time).to be < 1 }
# threads.each { |t| t.join }
end

it 'autorelease flag is set to true by default' do

0 comments on commit f9fbfa7

Please sign in to comment.