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