Sha256: 249021be3b6e75cfea57147190f9712c48f8e5ab9b5d1f4582784a9ede6ec18c
Contents?: true
Size: 464 Bytes
Versions: 39
Compression:
Stored size: 464 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")) 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
39 entries across 37 versions & 8 rubygems