Sha256: 73fda9fc9d6c5598b3a43bf4a5c85a3d8c17ba9a34be5bc88b84ab2e0c7cd690
Contents?: true
Size: 479 Bytes
Versions: 3
Compression:
Stored size: 479 Bytes
Contents
# # This file is part of ruby-ffi. # For licensing, see LICENSE.SPECS # require File.expand_path(File.join(File.dirname(__FILE__), "spec_helper")) require 'ffi' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-1.9.5-x64-mingw32 | spec/ffi/errno_spec.rb |
ffi-1.9.5-x86-mingw32 | spec/ffi/errno_spec.rb |
ffi-1.9.5 | spec/ffi/errno_spec.rb |