Sha256: f316a1b9ea8a8a004cec0b92ca6f7d3b886ce2c3c2b737ac824b20dfb7d53e13

Contents?: true

Size: 390 Bytes

Versions: 43

Compression:

Stored size: 390 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper"))
describe "FFI.errno" do
  module LibTest
    extend FFI::Library
    ffi_lib TestLibrary::PATH
    attach_function :setLastError, [ :int ], :void
  end
  it "FFI.errno contains errno from last function" do
    LibTest.setLastError(0)
    LibTest.setLastError(0x12345678)
    FFI.errno.should == 0x12345678
  end
end

Version data entries

43 entries across 43 versions & 6 rubygems

Version Path
ffi-ffi-0.5.0 spec/ffi/errno_spec.rb
remogatto-ffi-0.5.0 spec/ffi/errno_spec.rb
ffi-0.6.4 spec/ffi/errno_spec.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/ffi-0.6.3/spec/ffi/errno_spec.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/ffi-0.6.3/spec/ffi/errno_spec.rb
ffi-1.0.4-x86-mingw32 spec/ffi/errno_spec.rb
ffi-1.0.4 spec/ffi/errno_spec.rb
ffi-1.0.3-x86-mingw32 spec/ffi/errno_spec.rb
ffi-1.0.3 spec/ffi/errno_spec.rb
ffi-1.0.2-x86-mingw32 spec/ffi/errno_spec.rb
ffi-1.0.2 spec/ffi/errno_spec.rb
ffi-1.0.1-x86-mingw32 spec/ffi/errno_spec.rb
ffi-1.0.1 spec/ffi/errno_spec.rb
ffi-1.0.0 spec/ffi/errno_spec.rb
ffi-aitrus-0.9.0.beta spec/ffi/errno_spec.rb
ffi-0.6.3-x86-mingw32 spec/ffi/errno_spec.rb
ffi-0.6.3-x86-mswin32 spec/ffi/errno_spec.rb
ffi-0.6.3 spec/ffi/errno_spec.rb
ffi-0.6.2 spec/ffi/errno_spec.rb
ffi-0.6.1 spec/ffi/errno_spec.rb